1
我下面這個教程:laravel宅基地,規定不是命令
https://code.tutsplus.com/courses/build-a-cms-with-laravel/lessons/install-and-configure-laravel
但是越來越步驟homestead provision
當我得到這個錯誤: [Symfony\Component\Console\Exception\CommandNotFoundException Command "provision" is not defined.
這是一個問題。如果我運行homestead -v
$ homestead -v
Laravel Homestead version 3.0.2
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
list Lists commands
make Install Homestead into the current project
因此,規定不是一個命令。有沒有人知道我需要安裝什麼才能使其工作?
我也不得不這樣做: '流浪漢ssh', '服務domain.app /家庭/流浪者/項目/ myproject/public', 然後 'sudo service nginx restart'。 只要有人遇到相同的問題! – userqwert