Laravel Homestead 2.0 Adding New Sites

不羁岁月 提交于 2019-12-06 15:50:30

Instead of step 3 use vagrant provision in your homestead directory (~/.composer/vendor/laravel/homestead/).

As I know Taylor is already planning a "provision" flag, until that you can feel free to use vagrant commands.

this works for me

homestead halt && homestead up --provision

Here is my ~/homestead/.Homestead.yaml file, it contains a configuration for two apps, one with HHVM enabled and one with HHVM disabled(default in homestead).

Homestead will create the database for you in MySQL and PostgreSQL server, when running 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

You can now run: $ homestead up

and then: $ homestead ssh

and then run byobu(for tmux): $ byobu

and cd into the project: $ cd Projects/jobs

and run composer: $ composer update

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!