Skip to content

Commit

Permalink
Added creation of django secret key to deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
jessamynsmith committed May 10, 2015
1 parent 2776193 commit afca0d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/deploy_to_heroku.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ set -e
CIRCLE=$1

DEPLOY_DATE=`date "+%FT%T%z"`
SECRET=$(openssl rand -base64 58 | tr '\n' '_')

heroku config:set --app=socialjusticebingo \
NEW_RELIC_APP_NAME='socialjusticebingo' \
ADMIN_EMAIL="socialjusticebingo@gmail.com" \
ADMIN_NAME="socialjusticebingo" \
DJANGO_SETTINGS_MODULE=socialjusticebingo.settings.production \
DJANGO_SECRET_KEY=$DJANGO_SECRET_KEY \
DJANGO_SECRET_KEY="$SECRET" \
DEPLOY_DATE="$DEPLOY_DATE" \
> /dev/null

Expand Down

0 comments on commit afca0d7

Please sign in to comment.