Skip to content

Instantly share code, notes, and snippets.

Created Nov 8, 2018
What would you like to do?
Create temporary migrations when deploying dev from CircleCi
# Dev only:
# Create migrations for any model changes that don't have migrations committed yet.
# Makes the migrations locally and push them up since we can't write files outside /tmp in Lambda
if [[ "${CIRCLE_BRANCH}" == "dev" ]]
python makemigrations --name ${CIRCLE_BRANCH}_`date "+%Y%m%d-%H%M%S"` --settings=app.settings.production
zappa update -s config/zappa_settings.json ${CIRCLE_BRANCH}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment