我的应用程序在 Engine Yard 服务上,我需要设置环境变量以使用我的 secret ID 和密码。
有人知道我如何设置每个变量吗?做这个的最好方式是什么?
最佳答案
我刚刚为在 Unicorn 上运行的应用程序设置了环境变量。
export SECRET_ID=yourid
export SECRET_PASSWORD=yourpass
/engineyard/bin/app_{app_name} reload
如果您使用的是乘客,请查看:
https://stackoverflow.com/a/12955526/1520775
https://github.com/jimneath/ey-cloud-recipes/tree/master/cookbooks/passenger_env_vars
关于ruby-on-rails - 在 Engine Yard 上设置环境变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12824509/