Skip to content

Commit 389cd08

Browse files
author
Chris Armstrong
committed
Fixed deployment script.
1 parent 65d9b8d commit 389cd08

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cag.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ then
126126

127127
# Only proceed if the backup was successful (i.e. the backup db exists).
128128
# Source: https://linuxize.com/post/bash-check-if-file-exists/
129-
if test -f "~/temp/db.sqlite3.bak.gz"
129+
if [ -e ~/temp/db.sqlite3.bak.gz ]
130130
then
131131

132132
# The backup db exists, so proceed.
@@ -149,7 +149,7 @@ then
149149
cd bco_api
150150

151151
# Create the virtual environment and activate it.
152-
virtualenv env
152+
/home/beta_portal_user/.local/bin/virtualenv env
153153
source env/bin/activate
154154

155155
# Install requirements.
@@ -200,7 +200,7 @@ then
200200
chown beta_portal_user:nginx * -R
201201

202202
# Restart the service.
203-
systemctl restart beta_gunicorn
203+
systemctl restart bco_api
204204

205205
else
206206

0 commit comments

Comments
 (0)