Tuesday, January 29, 2019

django wagtial docker production and staging database

Hi I have a wagtail application running on digital ocean,
Deployed with ansibble and docker (separate)

When I used amazon I had staging and production branches in my git environment (for small flask projects). 
Now I user docker and try tor find a way to handle the settings.py for staging with local database sqllite and for production postgres.

I found out how to implement postgres. settings.dev.py settings.production.py, but how to trigger the settings.production.py and how to trigger the local settings.dev.py?

So that the local database is data is not passing over to the production postgres database?

Do I set it up in my yml file? Or do I use a cli command? 
Tim

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/83c44a37-9eb9-4f5b-85a9-dc3833c93637%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment