Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up dev environment and update database dependencies #56

Merged
merged 4 commits into from
Jun 15, 2024

Conversation

jeancochrane
Copy link
Owner

@jeancochrane jeancochrane commented Jun 15, 2024

This PR consolidates some unnecessary Docker files and updates the database stack to the most recent versions of all the packages. We also update fixtures/mellowroute.json to match the most recent dump from prod.

Since the prod app doesn't actually use the development Docker resources or fixtures, these changes shouldn't have any effect on prod.

environment:
DJANGO_SECRET_KEY: reallysupersecret
DJANGO_MANAGEPY_MIGRATE: "on"
entrypoint: /app/docker-entrypoint.sh
command: python manage.py runserver 0.0.0.0:8000
command: /app/app/docker-entrypoint.sh python manage.py runserver 0.0.0.0:8000
Copy link
Owner Author

Choose a reason for hiding this comment

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

Note for posterity: Something weird was happening with docker-entrypoint.sh where it couldn't actually read in command overrides as arguments when specifying a new command via the CLI. I never really figured it out, but refactoring things such that docker-entrypoint.sh is used in the command rather than the entrypoint fixed the problem, and more closely matches the way I work in development anyway (I don't want to run migrations literally every time I'm running code on the app image).

@jeancochrane jeancochrane merged commit cce3ef0 into master Jun 15, 2024
2 checks passed
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.

1 participant