Skip to content

Commit

Permalink
Merge pull request #71 from gwu-libraries/t70-deploy
Browse files Browse the repository at this point in the history
refs #70. Removes copying of wsgi.py and adds wait for mq. closes #70
  • Loading branch information
rajatvij committed Dec 4, 2015
2 parents ea118ee + 0a73bf3 commit 8256058
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions docker/app-master/invoke.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/bin/bash
echo "Waiting for db"
appdeps.py --wait-secs 30 --port-wait db:5432 --file /opt/sfm-ui
appdeps.py --wait-secs 30 --port-wait db:5432 --file /opt/sfm-ui --port-wait mq:5672
if [ "$?" = "1" ]; then
echo "Problem with application dependencies."
exit 1
fi

echo "Copying config"
cp /tmp/wsgi.py /opt/sfm-ui/sfm/sfm/
export DJANGO_SETTINGS_MODULE=sfm.settings.docker_settings

echo "Syncing db"
/opt/sfm-ui/sfm/manage.py syncdb --noinput
Expand Down
5 changes: 2 additions & 3 deletions docker/app-prod/0.2.0/invoke.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/bin/bash
echo "Waiting for db"
appdeps.py --wait-secs 30 --port-wait db:5432 --file /opt/sfm-ui
appdeps.py --wait-secs 30 --port-wait db:5432 --file /opt/sfm-ui --port-wait mq:5672
if [ "$?" = "1" ]; then
echo "Problem with application dependencies."
exit 1
fi

echo "Copying config"
cp /tmp/wsgi.py /opt/sfm-ui/sfm/sfm/
export DJANGO_SETTINGS_MODULE=sfm.settings.docker_settings

echo "Syncing db"
/opt/sfm-ui/sfm/manage.py syncdb --noinput
Expand Down

0 comments on commit 8256058

Please sign in to comment.