/
How to add environmental variables to an application?

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

Related content

Deploying a new app using Push to Deploy
Deploying a new app using Push to Deploy
More like this
Deploy a new app using the command line
Deploy a new app using the command line
More like this
This domain has already been used on Galaxy
This domain has already been used on Galaxy
More like this
How to transfer a Meteor application to another region/user/organization?
How to transfer a Meteor application to another region/user/organization?
More like this