File tree Expand file tree Collapse file tree 2 files changed +22
-5
lines changed Expand file tree Collapse file tree 2 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ aliases:
14
14
# Production apps will use a different org than staging for security.
15
15
# Change this value to your org name
16
16
# or set ENV CPLN_ORG to your org name as that will override whatever is used here for all cpl commands
17
- # cpln_org: shakacode-open-source-examples
17
+ cpln_org : shakacode-open-source-examples-staging
18
18
19
19
# Example apps use only location. CPLN offers the ability to use multiple locations.
20
20
default_location : aws-us-east-2
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -e
2
2
3
- echo ' Running release_script.sh per controlplane.yml'
4
3
5
- echo ' Run DB migrations'
6
- ./bin/rails db:prepare
4
+ log () {
5
+ echo " [` date +%Y-%m-%d:%H:%M:%S` ]: $1 "
6
+ }
7
7
8
- echo ' Completed release_script.sh per controlplane.yml'
8
+ error_exit () {
9
+ log " $1 " 1>&2
10
+ exit 1
11
+ }
12
+
13
+ # Test error!
14
+ error_exit
15
+
16
+ log ' Running release_script.sh per controlplane.yml'
17
+
18
+ if [ -x ./bin/rails ]; then
19
+ log ' Run DB migrations'
20
+ ./bin/rails db:prepare || error_exit " Failed to run DB migrations"
21
+ else
22
+ error_exit " ./bin/rails does not exist or is not executable"
23
+ fi
24
+
25
+ log ' Completed release_script.sh per controlplane.yml'
You can’t perform that action at this time.
0 commit comments