How to add environmental variables to an application?

If you want to add variables that are related to the build/deploy process, and you are using Push to Deploy, you can add it in the Push to Deploy advanced options, under the environmental variables section, like in the image below.

 

 

Keep in mind that if you want to add custom variables in this section and also want them to be accessible inside your application, you must add these variables inside your settings.json file, otherwise they won't appear inside your deployed application.

 

To add custom variables inside your application, you can add them to your settings.json file, like in the example below:

{ "galaxy.meteor.com": { "env": { "GOOGLE_PLACES": "Example", "GOOGLE_APPLICATION_CREDENTIALS": "Example2", } } }

For more details about using environmental variables, you check the following two links from our docs:

https://galaxy-guide.meteor.com/container-environment.html#env-vars

https://galaxy-guide.meteor.com/deploy-setup.html#env-variables