简体   繁体   中英

Laravel .env in AWS Elastic Beanstalk

I have deployed my Laravel application to AWS Beanstalk . I also connected CodePipeline for automatic deployment. As I have multiple environments (staging, testing, production) I want to use AWS Elastic Beanstalk environment variables for different environments. However, when I write my own variables to elastic beanstalk configuration and I dd(config('app.env')) , it prints "production" instead of "staging" . How can I fix this problem? Thanks in advance!

Ps: I also removed the .env file manually, it still did not work.

环境

亚马逊首先检查它的全局变量(google it pls)然后引用laravel .env 文件变量

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM