install laradock on ubuntu by snap
how to install laradock
(Laradock Offical website)[https://laradock.io/]
- snap install docker
- git clone https://github.com/laradock/laradock.git
- cd laradock && cp env-example .env
- vi .env
Find “APP_CODE_PATH_HOST” Set to laravel project location. - docker-compose up -d mysql redis phpmyadmin redis workspace
- docker-compose exec mysql bash
- mysql -uroot -proot
- CREATE ‘user’@’localhost’ IDENTIFIED BY ‘PASSWORD’
- CREATE DATABASE laravel;
- Start Developing~~ e.g. php artisan key:generate && php artisan migrate && php artisan db:seed
Now you can see laravel offical website pages by visiting http://localhost:80/
本站所有文章除特别聲明外,均採用 CC BY-SA 4.0 協議 ,轉載請註明出處!