首页 > 解决方案 > How do I run Artisan Commands in ElasticBeanStalk

问题描述

So, I created the .ebextensions folder and created a queue_worker.config file in the folder with the following content:

container_commands:
 queue_worker:
 command: "php artisan queue:work"

I got an error report Could not open input file: artisan. I even tried "php /var/app/ondeck/artisan queue:work" but still having the same error.

Please, how can I run artisan correctly without the EBS CLI tool?

标签: phplaravelamazon-elastic-beanstalkconfig

解决方案


/var/app/*由 root 拥有。请在 queue_worker.config 中将您的用户更改为root ,然后再次运行您的部署。


推荐阅读