@@ -12,7 +12,8 @@ You can see the definition of Postgres and Redis in the `.controlplane/templates
12
12
13
13
1 . Ensure your [ Control Plane] ( https://controlplane.com ) account is set up.
14
14
You should have an ` organization ` ` <your-org> ` for testing in that account.
15
- You will modify value for ` aliases.common.cpln_org ` in ` .controlplane/controlplane.yml ` .
15
+ Set ENV variable ` CPLN_ORG ` to ` <your-org> ` . Alternatively, you may modify the
16
+ value for ` aliases.common.cpln_org ` in ` .controlplane/controlplane.yml ` .
16
17
If you need an organization, please
[ contact Shakacode
] ( mailto:[email protected] ) .
17
18
18
19
2 . Install Control Plane CLI (and configure access) using ` npm install -g @controlplane/cli ` .
@@ -58,10 +59,10 @@ and not `cpln` which is the Control Plane CLI.
58
59
59
60
``` sh
60
61
# Use environment variable to prevent repetition
61
- export APP_NAME=tutorial-app
62
+ export APP_NAME=react-webpack-rails-tutorial
62
63
63
64
# Provision all infrastructure on Control Plane.
64
- # app tutorial-app will be created per definition in .controlplane/controlplane.yml
65
+ # app react-webpack-rails-tutorial will be created per definition in .controlplane/controlplane.yml
65
66
cpl apply-template gvc postgres redis rails daily-task -a $APP_NAME
66
67
67
68
# Build and push docker image to Control Plane repository
@@ -83,11 +84,11 @@ cpl open -a $APP_NAME
83
84
84
85
### Promoting code updates
85
86
86
- After committing code, you will update your deployment of ` tutorial-app ` with the following commands:
87
+ After committing code, you will update your deployment of ` react-webpack-rails-tutorial ` with the following commands:
87
88
88
89
``` sh
89
- # Assuming you have already set APP_NAME env variable to tutorial-app
90
- # Build and push new image with sequential image tagging, e.g. 'tutorial-app :1', then 'tutorial-app :2', etc.
90
+ # Assuming you have already set APP_NAME env variable to react-webpack-rails-tutorial
91
+ # Build and push new image with sequential image tagging, e.g. 'react-webpack-rails-tutorial :1', then 'react-webpack-rails-tutorial :2', etc.
91
92
cpl build-image -a $APP_NAME
92
93
93
94
# Run database migrations (or other release tasks) with latest image,
@@ -102,7 +103,7 @@ cpl deploy-image -a $APP_NAME
102
103
If you needed to push a new image with a specific commit SHA, you can run the following command:
103
104
104
105
``` sh
105
- # Build and push with sequential image tagging and commit SHA, e.g. 'tutorial-app :123_ABCD'
106
+ # Build and push with sequential image tagging and commit SHA, e.g. 'react-webpack-rails-tutorial :123_ABCD'
106
107
cpl build-image -a $APP_NAME --commit ABCD
107
108
```
108
109
0 commit comments