From 8f6cfc85c19747e0d3760ebafcfbfb35f56cea2b Mon Sep 17 00:00:00 2001 From: Andrew Bird Date: Wed, 5 Jun 2024 01:51:17 +0000 Subject: [PATCH] Fix --- deploy/deploy.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/deploy/deploy.sh b/deploy/deploy.sh index 90d5a8d..88f86c4 100755 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -16,10 +16,11 @@ npm run build cd /home/eaa/donation_portal -workon donation_portal +# Activate the virtual environment +source /home/eaa/.virtualenvs/donation_portal/bin/activate echo "Collecting staticfiles." -./manage.py collectstatic +./manage.py collectstatic --noinput echo "Migrating db." ./manage.py migrate @@ -29,4 +30,4 @@ EOF echo "Restarting service." sudo supervisorctl restart donations: -echo "Deployment completed successfully." \ No newline at end of file +echo "Deployment completed successfully."