-
Notifications
You must be signed in to change notification settings - Fork 2
/
forge-sample.json
84 lines (66 loc) · 2.34 KB
/
forge-sample.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
// The file to execute if none is specified
"executable": "app.js",
// Run update process prior to starting program
"update_on_start": false,
// The maximum number of times the script should attempt to be restarted in case of crashes
"max_restarts": null,
// Information for update listener connections
"connections": {
// Turn update connection on by default
"on": true,
// Determines which connector to use if "rabbitmq" and "http" configurations are both present
"use": "rabbitmq",
// RabbitMQ connection info
// To use, set up an amqp post commit hook in Github
"rabbitmq": {
"connection": {
"host": "rabbit.somedomain.net",
"login": "rabbituser",
"password": "rabbitpass",
"vhost": "rabbitvhost"
},
"queue": "rabbitmq.queue",
"exchange": "rabbitmq.exchange",
"key": "github.push.owner.repo.revision"
},
// Information to set up HTTP server to listen for update
// To use, point a post commit hook at http://yourhost.com:{{ http.port }}
"http": {
"port": 9999,
"key": "owner.repo.revision"
}
},
"scripts": {
// This command will be run after an update is performed
"update": "npm install && ./update.js && echo \"This was a shell command\""
},
// Parameters for watch mode
"watch": {
// Turn watch mode on by default
"on": false,
// Path relative to the project directory that should be watched for changes
// Defaults to project root
"path": "",
// A list of files and directories to exclude from watching
// All values will be relative to watch.path
"exclude": [],
},
// Parameters for daemon mode
"daemon": {
// Start daemon mode by default
"on": false,
// Directory in which to store pid files
// @TODO: Implement "forge" folder inside this directory for pid storage
"pid_dir": "/tmp",
// Log file for stdout
"stdout_log": "./out.log",
// Log file for stderr
"stderr_log": "./out.log"
},
// Git repo information
"git": {
"remote": "origin",
"revision": "master"
}
}