Skip to content

Commit

Permalink
update deploymenr
Browse files Browse the repository at this point in the history
  • Loading branch information
davgibbs committed Aug 18, 2019
1 parent 76ec9f0 commit 6c4b381
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions deployment/deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ echo "Upgrade Python env"
echo "------------------"
venv/bin/pip install -r requirements.txt


echo "-------------------------------------"
echo "Run any migrations that are available"
echo "-------------------------------------"
venv/bin/python apps/manage.py migrate --settings=quotesdisplay.$SETTINGS_FILE

echo "---------------------------"
echo "Install the JavaScript dependencies"
echo "---------------------------"
npm run install

echo "---------------------------"
echo "Build the production bundle"
echo "---------------------------"
Expand All @@ -49,9 +60,3 @@ echo "---------------------------------------"
echo "Collect all the static files for Django"
echo "---------------------------------------"
venv/bin/python apps/manage.py collectstatic --noinput --clear --settings=quotesdisplay.$SETTINGS_FILE

echo "-------------------------------------"
echo "Run any migrations that are available"
echo "-------------------------------------"
venv/bin/python apps/manage.py migrate --settings=quotesdisplay.$SETTINGS_FILE

0 comments on commit 6c4b381

Please sign in to comment.