Set Environment variables on Engine Yard

橙三吉。 提交于 2020-01-12 05:50:52

问题


My app is on Engine Yard services and I need to set the environment variables to work with my secret id and password.

Somebody know how I can set each variables? What is the best way to do this?


回答1:


I've just managed to set environment variables for my application running on Unicorn.

  1. Open /data/{app_name}/shared/config/env.custom and edit it to look like this:

    export SECRET_ID=yourid
    export SECRET_PASSWORD=yourpass
    
  2. Restart unicorn /engineyard/bin/app_{app_name} reload

If you are using passenger take a look at:
https://stackoverflow.com/a/12955526/1520775
https://github.com/jimneath/ey-cloud-recipes/tree/master/cookbooks/passenger_env_vars




回答2:


If you're running Unicorn, you can try putting them in /data//shared/config/env.custom. Otherwise, it can be tricky. Throw in a Support ticket and they'll have a look.

Disclosure: I work there :)



来源:https://stackoverflow.com/questions/12824509/set-environment-variables-on-engine-yard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!