Home >PHP Framework >Laravel >Teach you step by step how to install laravel project using Laradock

Teach you step by step how to install laravel project using Laradock

藏色散人
藏色散人forward
2021-12-17 14:43:482242browse

The following tutorial column of Laravel will introduce how to use Laradock to install the laravel project. I hope it will be helpful to everyone!

Use Laradock to install laravel project

1. Install docker

2. Install Laradock

  1. 1. Install laradock
    git submodule add https://github.com/Laradock/laradock
  2. 2. cd into laradock project path
  3. 3. cp .env.example .env
  4. 4. Modify the

    Teach you step by step how to install laravel project using Laradock

    in the env. file. This path means the path above the current path. One layer

    Teach you step by step how to install laravel project using Laradock

    is the same layer as your laradock project
  5. 5. Run the code in the laradock directory

    1. docker-compose exce workspace bash
    2. Enter the docker virtual layer,
    3. Execute the command in the docker virtual layer

      1. composer create-project laravel/laravel app1 "5.2.*" && \ cd app1 && \ php artisan key:generate
    4. It is equivalent to creating a laravel Project
    5. Exit the docker virtual layer exit command
  6. 6. At this time, if you cd project-z, you will see what you created in the docker virtual layer. app1 project

    Teach you step by step how to install laravel project using Laradock
  7. 7. Modify the configuration file in laradock/nginx/site/

    Teach you step by step how to install laravel project using Laradock
  8. 8. Modify the storage permissions of the project-z/app1 project
  9. 9. Complete

The above is the detailed content of Teach you step by step how to install laravel project using Laradock. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete