Skip to content

Commit

Permalink
Add to deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Bird committed Jun 5, 2024
1 parent 3e5ea52 commit 5d1e4d9
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions deploy/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,25 @@ sudo -u eaa -H bash << EOF
echo "Logged in successfully."
# Navigate to the project directory
cd /home/eaa/donation_portal
cd /home/eaa/donation_portal/react
# Pull the latest changes from the repository
git pull
echo "Deployment completed successfully."
echo "Building frontend."
npm run build
cd /home/eaa/donation_portal
echo "Collecting staticfiles."
./manage.py collectstatic
echo "Migrating db."
./manage.py migrate
EOF

echo "Restarting service."
sudo supervisorctl restart donations:

echo "Deployment completed successfully."

0 comments on commit 5d1e4d9

Please sign in to comment.