这是我的~/homestead/.Homestead.yaml
文件,它包含两个应用程序的配置,一个启用了 HHVM,一个禁用了 HHVM(宅基地默认)。
当运行homestead up
.
---
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: jobs.app
to: /home/vagrant/Projects/jobs/public
- map: messages.app
to: /home/vagrant/Projects/messages/web
hhvm: true
databases:
- jobs
- messages
variables:
- key: APP_ENV
value: local
您现在可以运行:$homestead up
然后:$homestead ssh
然后运行 byobu(for tmux): $byobu
并 cd 进入项目:$cd Projects/jobs
并运行作曲家:$composer update