My application is in Engine Yard services, and I need to set environment variables to work with my secret identifier and password.
Does anyone know how I can set each variable? What is the best way to do this?
I was only able to set environment variables for my Unicorn application.
Open / data / {app_name} /shared/config/env.custom and edit it like this:
export SECRET_ID=yourid export SECRET_PASSWORD=yourpass
Restarting the unicorn /engineyard/bin/app_{app_name} reload
/engineyard/bin/app_{app_name} reload
If you are using a passenger, check out:fooobar.com/questions/924971 / ...https://github.com/jimneath/ey-cloud-recipes/tree/master/cookbooks/passenger_env_vars
If you use Unicorn, you can try putting them in /data//shared/config/env.custom. Otherwise, it can be tricky. Throw a support ticket and they will look.
Disclosure: I work there :)
Source: https://habr.com/ru/post/924975/More articles:What is the biggest notation of the `len ()` function in Python? - pythonSetting environment variables in machines - ruby-on-railsGPUImage - How to associate filters with GPUImagePicture? - iosUsing data types in Haskell - haskellBandwidth Consequences of embedding Youtube videos on my site - youtubeMarshall and magic_copy in js_of_ocaml - marshallingTortoise SVN Fix error: "Invalid PROPPATCH property" - svnRandom object from database with GORM - hibernateQuadratic programming solution using R - rWhy is my page not showing the correct size on Android even with Viewport / Media requests? - androidAll Articles