1
Fork 0

Added private data

This commit is contained in:
Jake Howard 2016-01-01 21:22:57 +00:00
parent 474dbb9834
commit f7152edf88
3 changed files with 13 additions and 1 deletions

2
build
View file

@ -9,3 +9,5 @@ npm install
npm run build
env/bin/python manage.py collectstatic --noinput
scripts/get-private-data.sh

View file

@ -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

9
scripts/get-private-data.sh Executable file
View file

@ -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/