Makefile with some useful commands for Laradock
Copy the Makefile
from this repo to your project root.
You can do this with:
wget https://raw.githubusercontent.com/bazavlukd/laradock-makefile/master/Makefile
Download Laradock:
make install-laradock
Run all containers:
make up
Run initial scripts to build the project
make initial-build
Enjoy =)
up
- run all containersdown
- stop all containerslog
- show Laravel logdocker-log
- show docker logjoin-workspace
- get into workspace containerjoin-php
- get into php containerjoin-db
- get into db container and login into postgresnpm-install
- install js dependenciesbuild-js
- run npm buildbuild-js-production
- run npm build for productionwatch-js
- run npm watchkey-generate
- generate key for laravelnew
- asks you to enter command and coomand name and create itnew-migration
- asks you to enter migration name and create it (requires sudo since it created inside a container)run-migrations
- run artisan migraterun-seeds
- run artisan db:seedcomposer-install
- install php dependenciestest
- run test with phpunitinstall-laradock
- install laradockinitial-build
- run initial scripts to build the projectqueue-flush
- flush redis queuehorizon
- run laravel horizon queueup-ngrok
- run ngrok to expose nginx webserver on port 80