diff --git a/build b/build index 7374d1a..921f660 100755 --- a/build +++ b/build @@ -9,3 +9,5 @@ npm install npm run build env/bin/python manage.py collectstatic --noinput + +scripts/get-private-data.sh diff --git a/project/settings.py b/project/settings.py index 52e1643..6f14bf1 100644 --- a/project/settings.py +++ b/project/settings.py @@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import dj_database_url, os +from private import export BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) @@ -19,7 +20,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'q&^k#n_lkd5l9&g^k7$q1rhj_=%9yqy-)ln78ik414-bcowedy' +SECRET_KEY = export('SECRET_KEY') # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True diff --git a/scripts/get-private-data.sh b/scripts/get-private-data.sh new file mode 100755 index 0000000..c4b6d0e --- /dev/null +++ b/scripts/get-private-data.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -e + +echo ">> Removing old Private Data..." +rm -rf private/ + +echo ">> Getting Private Data..." +git clone git@bitbucket.org:TheOrangeOne/theorangeone.net-site-private-data.git --branch master --single-branch private/