美文网首页vagrant
Laravel (1) - Virtual Environmen

Laravel (1) - Virtual Environmen

作者: 足各山禾女鬼 | 来源:发表于2017-02-28 00:39 被阅读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

    ```

    相关文章

      网友评论

        本文标题:Laravel (1) - Virtual Environmen

        本文链接:https://www.haomeiwen.com/subject/ekxvfttx.html