安裝
使用 composer 的方式進行安裝
composer global require laravel/envoy
配置命令執行的環境
在你的〜/ .bashrc中添加這一行代碼
echo 'export PATH="$PATH:$HOME/.config/composer/vendor/bin"' >> ~/.bashrc
這裏可能存在不同的地方,可以使用下面的命令,確定自己文件所在的位置
find / -name 'vendor' -type d
使配置生效
source ~/.bashrc
全局生效,需要登出系統或重啓系統
設置PATH可以修改三個文件, ~/.bash_profile 或者 ~/.bashrc , 或者 ~/.zshrc
查看是否成功
envoy
Laravel Envoy 1.5.0
Usage:
command [options] [arguments]
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
help Displays help for a command
init Create a new Envoy file in the current directory.
list Lists commands
run Run an Envoy task.
ssh Connect to an Envoy server.
tasks Lists all Envoy tasks and macros.
參考文章
https://laravel-china.org/doc...
https://www.dovov.com/laravel...