Skip to content

Commit

Permalink
Improve directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
dansahagian committed Aug 20, 2024
1 parent e32df5a commit 3cf5dc9
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ rsync -a ./manage.py dan@linode:/opt/fbsurvivor
rsync -a ./bin dan@linode:/opt/fbsurvivor
rsync -a ./prod.env dan@linode:/opt/fbsurvivor/.env

ssh linode /opt/fbsurvivor/bin/deploy_on_server
ssh linode /opt/fbsurvivor/bin/deploy-on-server

curl -X GET -I https://fbsurvivor.com
2 changes: 0 additions & 2 deletions bin/deploy_on_server → bin/deploy-on-server
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,3 @@ echo "\nStarting services...\n"
sudo systemctl start wsgi-server-fbsurvivor.service

sleep 2

rm .env
12 changes: 12 additions & 0 deletions bin/restart-service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/zsh

rsync -a ./prod.env dan@linode:/opt/fbsurvivor/.env

echo "\nStopping services...\n"
ssh linode sudo systemctl stop wsgi-server-fbsurvivor.service

echo "\nStarting services...\n"
ssh linode sudo systemctl start wsgi-server-fbsurvivor.service

sleep 2
curl -X GET -I https://fbsurvivor.com
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3cf5dc9

Please sign in to comment.