How should the Fabric deployment work If I'm using Django on Heroku with Django-South?

StackOverflow https://stackoverflow.com/questions/8681741

سؤال

I want to use Fabric so I can wrap all my production deployment steps:

  • git push to heroku
  • South migrations
  • collectstatic for static files to S3

I'm assuming that for the git push to heroku and the collectstatic I can just put their commands into a fabfile, correct? How would South migrations work?

لا يوجد حل صحيح

نصائح أخرى

Couldn't you just wrap the commands in a shell script?

deploy.sh

git push heroku master
heroku run python project/manage.py migrate
# Collect static command - not sure if you want to do this locally or from Heroku
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top