File tree Expand file tree Collapse file tree 3 files changed +45
-0
lines changed Expand file tree Collapse file tree 3 files changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,24 @@ aliases:
31
31
- redis
32
32
- postgres
33
33
34
+ # Configure the workload name used when maintenance mode is on (defaults to "maintenance").
35
+ maintenance_workload : maintenance
36
+
34
37
apps :
35
38
react-webpack-rails-tutorial :
39
+ # Simulate Production Version
36
40
<< : *common
37
41
# Don't allow overriding the org and app by ENV vars b/c production is sensitive!
38
42
allow_org_override_by_env : false
39
43
allow_app_override_by_env : false
44
+
45
+ # Use a different organization for production.
46
+ cpln_org : shakacode-open-source-examples
47
+
48
+ upstream : react-webpack-rails-tutorial-staging
49
+
50
+ release_script : release_script.sh
51
+
40
52
react-webpack-rails-tutorial-staging :
41
53
<< : *common
42
54
# QA Apps are like Heroku review apps, but the use `prefix` so you can run a commmand like
Original file line number Diff line number Diff line change
1
+ #! /bin/bash -e
2
+
3
+ echo ' Running release_script.sh per controlplane.yml'
4
+
5
+ echo ' Run DB migrations'
6
+ rails db:prepare
7
+
8
+ echo ' Completed release_script.sh per controlplane.yml'
Original file line number Diff line number Diff line change
1
+ kind : workload
2
+ name : maintenance
3
+ spec :
4
+ type : standard
5
+ containers :
6
+ - name : maintenance
7
+ env :
8
+ - name : PORT
9
+ value : " 3000"
10
+ - name : PAGE_URL
11
+ value : " "
12
+ image : " shakacode/maintenance-mode"
13
+ ports :
14
+ - number : 3000
15
+ protocol : http
16
+ defaultOptions :
17
+ autoscaling :
18
+ minScale : 1
19
+ maxScale : 1
20
+ capacityAI : false
21
+ timeoutSeconds : 60
22
+ firewallConfig :
23
+ external :
24
+ inboundAllowCIDR :
25
+ - 0.0.0.0/0
You can’t perform that action at this time.
0 commit comments