Set environment variables in GAE control panel

0 views
Skip to first unread message

speechkey via StackOverflow

unread,
Jul 10, 2014, 6:08:12 AM7/10/14
to google-appengin...@googlegroups.com

I deploy my project to GAE over Github. There is some foreign API-key which I don't want to save in repository and make them public. Is it possible to set an environment variable for a project in GAE control panel so I can catch it in my application?



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/24673772/set-environment-variables-in-gae-control-panel

pgiecek via StackOverflow

unread,
Jul 10, 2014, 6:28:12 AM7/10/14
to google-appengin...@googlegroups.com

You can define environment variables in configuration file for App Engine application. In case of Python, it is app.yaml

env_variables:
   MY_ENV_VAR: 'some_value'

You can find more details here.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/24673772/set-environment-variables-in-gae-control-panel/24674102#24674102

pgiecek via StackOverflow

unread,
Jul 10, 2014, 6:43:09 AM7/10/14
to google-appengin...@googlegroups.com

You can define environment variables in configuration file for App Engine application. In case of Python, it is app.yaml

env_variables:
   MY_ENV_VAR: 'some_value'

You can find more details here.

EDIT

There is no such a thing like project parameters that can be defined in Developers Console at the moment.

speechkey via StackOverflow

unread,
Jul 10, 2014, 8:38:12 AM7/10/14
to google-appengin...@googlegroups.com

I deploy my project to GAE over Github.

There is some foreign API-key which I don't want to save in repository and make them public.

Is it possible to set an environment variable for a project in GAE control panel so I can catch it in my application?



pgiecek via StackOverflow

unread,
Jul 10, 2014, 8:43:12 AM7/10/14
to google-appengin...@googlegroups.com

You can define environment variables in configuration file for App Engine application. In case of Python, it is app.yaml

env_variables:
   MY_ENV_VAR: 'some_value'

You can find more details here.

There is no such a thing like project parameters that can be defined in Developers Console at the moment.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/24673772/set-environment-variables-in-gae-control-panel/24674102#24674102
Reply all
Reply to author
Forward
0 new messages