Update scripts for new location

This commit is contained in:
Daniel Mason 2021-12-25 13:30:55 +13:00
parent d268d939eb
commit ef66e1c8df
8 changed files with 26 additions and 20 deletions

View file

@ -2,12 +2,13 @@
# Easy deploy script..
echo 'Fetching latest git commit'
cd /var/www/goscrobble-api
git pull
echo 'Building backend'
go build -o goscrobble cmd/go-scrobble/*.go
cd web
cd /var/www/goscrobble-web
echo 'Installing frontend packages'
npm install --production

View file

@ -5,7 +5,7 @@ After=network.target
[Service]
Type=simple
User=root
ExecStart=/bin/bash -c 'cd /root/go-scrobble && ./goscrobble'
ExecStart=/bin/bash -c 'cd /var/www/goscrobble-api && ./goscrobble'
Restart=on-failure
[Install]