Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions makeabilitylabwebsite/rebuildanddeploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ cd ../

#if we're on a test system, lets mount the test volume
if [[ $(hostname -s) == *"test"* ]] ; then
sed -i 's,makelab/www:,makelab/www-test:,' docker-compose.yml
export DJANGO_ENV=TEST
docker-compose -f docker-compose.yml -f docker-compose-test.yml build website
docker-compose -f docker-compose.yml -f docker-compose-test.yml up -d
else
export DJANGO_ENV=PROD
docker-compose -f docker-compose.yml -f docker-compose-prod.yml build website
docker-compose -f docker-compose.yml -f docker-compose-prod.yml up -d
fi

#First, build the website image
docker-compose build website

#second bring up any containers that are down, recreating any that have a newer image.
docker-compose up -d
15 changes: 0 additions & 15 deletions rebuildanddeploy.sh

This file was deleted.