I've Laravel Homestead installed correctly, but now I want to add an additional site, I've done every step in the documentation, edit my Homestead.yaml
and my hostfile
:
Homestead.yaml
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/Projects
to: /home/vagrant/Projects
sites:
- map: scp.dev
to: /home/vagrant/Projects/scp
- map: katniss.dev
to: /home/vagrant/Projects/katniss
databases:
- scp
variables:
- key: APP_ENV
value: local
hostfile
192.168.10.10 scp.dev
192.168.10.10 katniss.dev
But when I run vagrant provision
it displays this:
A Vagrant environment or target machine is required to run this
command. Run vagrant init
to create a new Vagrant environment. Or,
get an ID of a target machine from vagrant global-status
to run
this command on. A final option is to change to a directory with a
Vagrantfile and to try again.
Do I have to run this command on a specific folder?