Added private data
This commit is contained in:
parent
474dbb9834
commit
f7152edf88
3 changed files with 13 additions and 1 deletions
2
build
2
build
|
@ -9,3 +9,5 @@ npm install
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
env/bin/python manage.py collectstatic --noinput
|
env/bin/python manage.py collectstatic --noinput
|
||||||
|
|
||||||
|
scripts/get-private-data.sh
|
||||||
|
|
|
@ -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, ...)
|
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||||
import dj_database_url, os
|
import dj_database_url, os
|
||||||
|
from private import export
|
||||||
|
|
||||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
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/
|
# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/
|
||||||
|
|
||||||
# SECURITY WARNING: keep the secret key used in production secret!
|
# 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!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
|
|
9
scripts/get-private-data.sh
Executable file
9
scripts/get-private-data.sh
Executable 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/
|
Reference in a new issue