2015-10-19 13:04:49 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
pyvenv-3.4 env
|
|
|
|
env/bin/pip install -r requirements.txt --upgrade
|
|
|
|
|
2016-01-02 00:05:01 +00:00
|
|
|
scripts/get-private-data.sh
|
|
|
|
|
2015-10-19 13:04:49 +01:00
|
|
|
npm install
|
2016-01-29 23:46:52 +00:00
|
|
|
npm run build $@
|
2015-10-19 13:04:49 +01:00
|
|
|
|
|
|
|
env/bin/python manage.py collectstatic --noinput
|
2016-01-16 14:39:54 +00:00
|
|
|
|
2016-01-30 00:11:31 +00:00
|
|
|
if [[ $BUILD_PRODUCTION ]]
|
2016-01-16 14:39:54 +00:00
|
|
|
then
|
|
|
|
echo ">> Running Migrations..."
|
|
|
|
env/bin/python manage.py migrate
|
|
|
|
fi
|