我编写了一个bash脚本,在Elastic Beanstalk中运行laravel特使命令
#!/bin/sh
cd /var/app/current/
sudo php vendor/bin/envoy run fillData &
它给出了如下错误:
在实例上执行命令失败
当访问EC2终端时
非常感谢.
我编写了一个bash脚本,在Elastic Beanstalk中运行laravel特使命令
#!/bin/sh
cd /var/app/current/
sudo php vendor/bin/envoy run fillData &
它给出了如下错误:
在实例上执行命令失败
当访问EC2终端时
非常感谢.
我解决了这个问题
好像是在弹性豆茎AWS中发现的WARN
以下实例未在允许的命令中响应
据我所知,命令继续运行,没有停止
我找到了这篇文章
fixing-a-mysterious-ebextensions-command-time-out-aws-elastic-beanstalk
我在bash文件中编写了这个命令
nohup sudo php vendor/bin/envoy run fillData >/dev/null 2>&1 </dev/null &
nohup
command to run in the background, >/dev/null
and it will put all the results on
so it will ignore the result
you can find more details about
>/dev/null