使用全Docker方式初始化Laravel项目
进入项目根目录
1 2 |
mkdir /var/www/example-app cd /var/www/example-app |
install laravel8
1 |
docker run -it --rm --volume $PWD:/app composer create-project laravel/laravel . |
1 |
docker run -it --rm --volume $PWD:/app composer require laravel/ui |
1 2 |
docker run -it --rm --workdir="/app" --volume $PWD:/app php:7.4-cli php artisan ui bootstrap docker run -it --rm --workdir="/app" --volume $PWD:/app php:7.4-cli php artisan ui bootstrap --auth |
1 |
docker run -it --rm --workdir="/app" --volume $PWD:/app node npm install && npm run dev |
1 |
docker run -it --rm --workdir="/app" --volume $PWD:/app minirplus/php php artisan migrate:fresh |
There are no comments yet