Managing multiple environments
Introduction
Running your app in multiple environments is a great way to help prevent your app breaking in production.
Creating a staging environment
You can create a new app to represent your staging environment with the Codemason CLI
$ mason create --remote staging
Creating app on Codemason...
... Created application
... Created remote repository
... Added git remote staging
By default the mason create
command will create a Git remote named codemason
. In the command above, we are
using the --remote
flag to specify the name staging
for this remote. Accordingly, you should use
the following command to push code to your new staging environment:
$ git push staging master
This will push your changes to the staging
version of your app.