Set Environment variables on Engine Yard

前端 未结 2 564
夕颜
夕颜 2021-02-10 00:25

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

2条回答
  •  有刺的猬
    2021-02-10 00:42

    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

提交回复
热议问题