Skip to content

Instantly share code, notes, and snippets.

@amyrlam
Last active August 29, 2015 14:03
Show Gist options
  • Save amyrlam/231187732c2bdc8873f8 to your computer and use it in GitHub Desktop.
Save amyrlam/231187732c2bdc8873f8 to your computer and use it in GitHub Desktop.
git, south migrations, heroku etc.
@amyrlam
Copy link
Author

amyrlam commented Jul 10, 2014

TO PULL LATEST IN GITHUB WHEN NOTHING MODIFIED LOCALLY

git pull

FOR RON TO ADD FILES TO GITHUB WHEN WE ARE NOT IN SYNC

git add .
git commit -a -m "your message"

git pull --rebase

git push origin master

TO RUN LOCAL SOUTH MIGRATIONS

be in first www_dev directory

python manage.py migrate organizations --settings=www_dev.settings.local

TO PUSH TO HEROKU

git push heroku master

TO RUN HEROKU SOUTH MIGRATIONS

be in parent WorldWideWomen_Amy directory

heroku run python www_dev/manage.py migrate organizations

NOT USED OFTEN, BUT IF SOMETHING IS CHANGED IN REQUIREMENTS.TXT

be in parent WorldWideWomen_Amy directory
pip install -r requirements.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment