@@ -12,7 +12,8 @@ You can see the definition of Postgres and Redis in the `.controlplane/templates
1212
13131 . Ensure your [ Control Plane] ( https://controlplane.com ) account is set up.
1414You 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 ` .
1617If you need an organization, please [ contact Shakacode] ( mailto:controlplane@shakacode.com ) .
1718
18192 . 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.
5859
5960``` sh
6061# Use environment variable to prevent repetition
61- export APP_NAME=tutorial-app
62+ export APP_NAME=react-webpack-rails-tutorial
6263
6364# 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
6566cpl apply-template gvc postgres redis rails daily-task -a $APP_NAME
6667
6768# Build and push docker image to Control Plane repository
@@ -83,11 +84,11 @@ cpl open -a $APP_NAME
8384
8485### Promoting code updates
8586
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:
8788
8889``` 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.
9192cpl build-image -a $APP_NAME
9293
9394# Run database migrations (or other release tasks) with latest image,
@@ -102,7 +103,7 @@ cpl deploy-image -a $APP_NAME
102103If you needed to push a new image with a specific commit SHA, you can run the following command:
103104
104105``` 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'
106107cpl build-image -a $APP_NAME --commit ABCD
107108```
108109
0 commit comments