We can build up a nice development workflow using a helper bash script.
This makes running command witin our Docker container super easy. Running all of those docker-compose
commands are a real pain!
We also move our application
files up a level so the Docker files are all within the same directory.
I don't show this in the repository for this video series, as I don't want to pin a specific Laravel version to it, but it's easy to change as I show in the video!
develop
Script
We can make a bash helper, which I name develop
:
touch develop
chmod +x develop
And we can start our develop
helper with simply this:
#!/usr/bin/env bash
We'll add useful items to it in the next video.