Skip to content

Commit ea25573

Browse files
committed
WIP
1 parent 0e33d19 commit ea25573

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

.controlplane/controlplane.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,24 @@ aliases:
3131
- redis
3232
- postgres
3333

34+
# Configure the workload name used when maintenance mode is on (defaults to "maintenance").
35+
maintenance_workload: maintenance
36+
3437
apps:
3538
react-webpack-rails-tutorial:
39+
# Simulate Production Version
3640
<<: *common
3741
# Don't allow overriding the org and app by ENV vars b/c production is sensitive!
3842
allow_org_override_by_env: false
3943
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+
4052
react-webpack-rails-tutorial-staging:
4153
<<: *common
4254
# QA Apps are like Heroku review apps, but the use `prefix` so you can run a commmand like

.controlplane/release_script.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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'
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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

0 commit comments

Comments
 (0)