GoScrobble/init/deploy.sh
Daniel Mason fb9ebef49c
0.0.21
- Add ez deploy script
- Half implemented JWT refresh tokens, need to finish JS implementation
2021-04-07 19:51:17 +12:00

19 lines
346 B
Bash
Executable File

#!/bin/bash
# Easy deploy script..
echo 'Fetching latest git commit'
git pull
echo 'Building backend'
go build -o goscrobble cmd/go-scrobble/*.go
cd 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