djangoproject.com
djangoproject.com copied to clipboard
dev: shell script to aid development with docker
This adds a shell script to aid in the development of the project using docker.
Commands would look something like;
./do.sh build
./do.sh start
Then if you need to interact with the app or migrate when it's running there's things available like;
./do.sh shell./do.sh makemigrations./do.sh migrate
There is some talk on slack about removing the entrypoint script, which currently runs migrate. But with this approach migrating is the responsibility of the developer, rather than an automatic startup job.
Why not just extend the existing Makefile? Or better yet, migrate to Just.
Because I've already got the script in another project so it's easy to bring across.