【发布时间】:2016-11-16 00:20:55
【问题描述】:
我有在应用程序启动之前执行的 shell 脚本。 这是shell脚本
#!/bin/sh
/usr/local/bin/composer install
/usr/local/bin/php artisan optimize
/usr/local/bin/php artisan key:generate
当我尝试执行这个脚本时,我得到了这个错误
Running composer as root/super user is highly discouraged as packages, plugins and scripts cannot always be trusted
[Symfony\Component\Console\Exception\CommandNotFoundException]
" is not defined.
Did you mean this?
install
composer 可执行文件已安装并在从命令行调用时工作
【问题讨论】:
标签: php shell laravel composer-php