vagrant

Laravel (1) - Virtual Environmen

2017-02-28  本文已影响9人  足各山禾女鬼

# create new laravel project from Vagrant

1. pre-install

* [VirtualBox](https://www.virtualbox.org/wiki/Downloads)

* [Vagrant](https://www.vagrantup.com/)

2. create Laravel project

```Bash

$ laravel new app

```

3. install Homestead into project folder

```Bash

app$ composer require laravel/homestead --dev

```

4. make/configure Homestead.yaml

```Bash

app$ php vendor/bin/homestead make

```

5. init virtual env (optional)

```Bash

app$ vagrant init

```

# Daily Usage

1. run virtual env

```Bash

app$ vagrant up

```

2. refresh 'site' settings on Homestead.yaml

```Bash

app$ vagrant reload --provision

```

上一篇下一篇

猜你喜欢

热点阅读