Set environment variables in the motor yard

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?

+5
source share
2 answers

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

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

+12
source

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 :)

+2
source

Source: https://habr.com/ru/post/924975/


All Articles