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."