On 10/18/2017 01:41 PM, Abhilash Raj wrote:
Hi,
$ docker-compose rm -f mailman-web $ docker-compose up -d mailman-web
This will basically create a new container for Mailman-web, but, since the state of mailman-web is stored completely in database (database container), I am not sure how to reset *just* mailman-web without dropping mailman-core related tables too (they share the same database but have their own separate tables). The above command will get you a fresh copy of code running.
You can potentially get the list of tables and drop them, or maybe Diango has some way to reset it's state from Django shell (python manage.py <http://manage.py> shell, from inside mailman-web will get you shell). I may have to look it up.
Also, just by looking at the traceback, I am not sure about the exact error. I may have to debug more to arrive at a better conclusion, which I won't able to do until after this weekend.
thanks for the suggestions. I'll try to dig in direction outlined by you, may end up producing some code to automate such task in the future :)
-- Sr System and DevOps Engineer SoM IRT