-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
67 lines (62 loc) · 2.07 KB
/
config.js
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
// config.js
// This file holds the configuration for our projects, and aims to be useful in two regards:
// 1. Allowing us to manage deploy locations with git-based histories and collaboration
// 2. Serve as documentation for where everything is on our server and how they are running
// the projects object contains the configuration for the server.
// Top level must be project name (same as name on github)
// Inside, the keys are branch names.
// Any branch can be configured by defining an object containing
// the configuration for that branch.
// Each configration must contain a deployPath, which corresponds to
// the path on the server where the code needs to go.
// Optionally, a deployMode can be defined to be "git", which will
// use the "git pull" command on the server. This option only works
// when the deployPath on the server is a git repo.
// This is handy when you've used "git clone" on the server to set up a project.
// Coming soon: you can optionally define an object "commands" of
// pre- and post-deploy commands to be run in sequence in the deployPath.
// It's currently defined for the artscilab project but doesn't get run.
const projects = {
"creativedisturbance": {
dev: {
deployPath: "/var/www/dev.creativedisturbance.org/html/wp-content/themes/creativedisturbance",
},
master: {
deployPath: "/var/www/creativedisturbance.org/html/wp-content/themes/creativedisturbance",
deployMode: "git"
}
},
"cdash": {
master: {
deployPath: "/var/www/atec.io/html/wp-content/themes/cdash"
}
},
"lab-docs": {
master: {
deployPath: "/var/www/manage.atec.io/html/",
deployMode: "git"
}
},
"artscilab": {
master: {
deployPath: "/home/al/artscilab",
deployMode: "git",
}
},
"ablb-backend": {
master: {
deployPath: "/home/al/ablb-backend",
deployMode: "git",
}
},
"ablb-app": {
master: {
deployPath: "/home/al/ablb-backend/client",
deployMode: "git",
commands: {
post: "yarn; yarn build"
}
}
}
}
module.exports = projects;