Browse Source

fix: improve deploy script to actually restart service after deploy

master
Inhji Y. 10 months ago
parent
commit
9f39a34eca
  1. 6
      deploy.sh

6
deploy.sh

@ -1,10 +1,12 @@
#!/usr/bin/env zsh
echo "Build starting!"
echo "--------------------------"
ssh -T tomie@glados << EOSSH
source ~/.zshrc
cd ~/tomie
git pull
./build.sh
sudo systemctl restart tomie
exit
EOSSH
echo "Build complete, restarting..."
ssh -T tomie@glados sudo systemctl restart tomie
Loading…
Cancel
Save