HI,


In fabfile.py, I use something similar to the following to install 
dependencies and to migrate the changes to the new model


run("pip install -r ../deployment/pip/deploy.txt")
> run("python manage.py migrate --settings=project.settings.prod")


When I upgrade the 3rd party apps which have migrations in the current 
version, but did not have in the previous one, my understanding is that I 
have to run ./manage.py migrate --fake <app_name>.


What would be a good solution with which a single deployment script (with 
Fabric) could pull the code from GIT repo, install new dependencies, take 
care of migrations and *IF* there are 3rd party apps that started using 
migrations recently, then run fake migrations on those.


Any pointers would be highly appreciated.


PS: I have also asked this as a Question in StackOverflow 
<http://stackoverflow.com/questions/33625885/deployment-script-to-accommodate-up-gradation-of-3rd-party-apps-and-fake-migra>,
 
if you'd like to take a look.

Thank you.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/62e0cc7e-6fe9-4b2e-9fe1-faa3c42fea82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to