Skip to content

Instantly share code, notes, and snippets.

@hanafiah
Created March 11, 2019 01:57
Show Gist options
  • Save hanafiah/99234d2f5d9e2ae423c8d57ef9348a2d to your computer and use it in GitHub Desktop.
Save hanafiah/99234d2f5d9e2ae423c8d57ef9348a2d to your computer and use it in GitHub Desktop.
laravel docker command
docker run -it --rm -v "$(pwd):/app" -w /app composer create-project --prefer-dist laravel/laravel src --ignore-platform-reqs
docker run -it --rm -v "$(pwd):/app" -w /app composer update --ignore-platform-reqs
docker exec -it -w /var/www/projects/spark/src php7.fpm php artisan spark:install --force
docker exec -it -w /var/www/projects/spark/src php7.fpm php artisan storage:link
docker run -it --rm -v "$(pwd):/app" -w /app node:alpine npm install
docker run -it --rm -v "$(pwd):/app" -w /app node:alpine npm run dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment