1
我有一个在应用程序启动前执行的shell脚本。 这是shell脚本在shell脚本中运行时的Composer安装错误
#!/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
安装作曲家可执行文件和命令行