Setting NODE_ENV variable in elasticbeanstalk

后端 未结 2 1017
醉话见心
醉话见心 2021-02-19 19:43

I\'ve created a file called .elasticbeanstalk/environment.config with the following in it:

option_settings:
  - option_name: NODE_ENV
    value:         


        
2条回答
  •  清酒与你
    2021-02-19 20:13

    Your .config file should be located in the .ebextensions directory, not .elasticbeanstalk.

    Try it then, if that doesn't work, you can always use the console.

    In the meantime, you can always use the Elastic Beanstalk Console which let's you add environment variables from its interface. To do so, just:

    1. Open up your environment.
    2. You'll see Dashboard, Configuration, Logs and more on the left. Click the Configuration link.
    3. Then click the gear icon next to the Software Configuration block.
    4. Scroll down and add a key/value for the Environment Properties.

提交回复
热议问题