php - 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?
解决方案
/var/app/*由 root 拥有。请在 queue_worker.config 中将您的用户更改为root ,然后再次运行您的部署。
推荐阅读
- python - 运行示例 pyqtgraph 程序时出现多个错误(主要是 sip 类型错误)
- r - 使用 metafor 进行多重元回归
- flutter - 如何将 StreamBuilder 与 Firebase 存储快照事件一起使用
- python - 在 Windows 10 上使用 Anaconda2 提示“ValueError: Attempted relative import in non-package”
- angular - @ngrx/data 如何取消提供 getAll、getWithQuery、getByKey 的请求
- tomcat - 数字海洋中 Tomcat 的 Certbot
- c++ - 如果将整数值传递给函数,如何使用结构定义创建节点?
- unix - 通过目录中的 1000 个 base64 编码文件查找标志
- validation - 编辑 Cucumber 功能文件时,XText 验证在 Eclipse 中不断加载并且没有响应
- python - 更新字典列表时遇到问题