django wagtial docker production and staging database

6 views
Skip to first unread message

Tim Vogt

unread,
Jan 29, 2019, 7:48:07 AM1/29/19
to Django users
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
Reply all
Reply to author
Forward
0 new messages