Skip to content

Conversation

@marksweb
Copy link
Contributor

@marksweb marksweb commented Oct 8, 2025

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.

Copy link
Member

@ulgens ulgens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just extend the existing Makefile? Or better yet, migrate to Just. I don't think bash scripting as a command wrapper and in addition to already existing Makefile, is the way to go.


A justfile example that works both from in and out of a Docker container: https://github.com/ulgens/django-blasphemy/blob/main/justfile The conditional logic can be easily adopted to make it into "works both with and without docker".

@marksweb
Copy link
Contributor Author

marksweb commented Oct 9, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants