GoScrobble/init/deploy.sh

20 lines
393 B
Bash
Raw Normal View History

#!/bin/bash
# Easy deploy script..
echo 'Fetching latest git commit'
2021-12-25 00:30:55 +00:00
cd /var/www/goscrobble-api
git pull
echo 'Building backend'
go build -o goscrobble cmd/go-scrobble/*.go
2021-12-25 00:30:55 +00:00
cd /var/www/goscrobble-web
echo 'Installing frontend packages'
npm install --production
echo 'Building frontend'
npm run build --env production
cd ..
echo 'Restarting Go service'
systemctl restart goscrobble.service