Learn more about the Jovo framework's staging feature.
Staging allows you to define separate deployment configurations (
project.js) and app configurations (
config.js) for each of your stages, usually local development, qa, and production.
project.js file you can define different stages that can have the same properties as the
project.js file itself.
You can find a detailed explanation about the
project.jsfile's properties here.
The defined stages can be referenced with the Jovo CLI while building the platforms files or deploying the project using the
The app configuration stages are not defined in the same file as the project configuration. Here we use separate files for each stage with the following naming pattern:
The stage configs can have the same attributes as the default
config.js file. For a detailed explanation of each property check the app configuration documentation here.
The current active stage config will overwrite the default configs (
For the app to know in which environment it is currently in, use the
STAGE environment variables:
On cloud services like AWS Lambda you have to use the built-in environment variable tools: