這裏是我的~/homestead/.Homestead.yaml
文件,它包含兩個應用程序,一個與HHVM啓用和一個與HHVM殘疾人(以宅基地默認)的配置。
Homestead將在運行homestead up
時爲MySQL和PostgreSQL服務器創建數據庫。
---
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
,然後運行屏風(用於TMUX): $ byobu
和CD到項目: $ cd Projects/jobs
並運行作曲家: $ composer update
'vagrant provision' on its own should work(from the homestead directory)。你也不應該「停止」或「向上」。您的數據庫可能因此被清除。 – Varedis
謝謝@Varedis,很高興知道! – markstewie