Home > PHP Framework > Laravel > body text

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

藏色散人
Release: 2021-12-17 14:44:59
forward
2120 people have browsed it

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
      Copy after login
    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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!