mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 01:45:15 +00:00
Daniel Mason
fb9ebef49c
- Add ez deploy script - Half implemented JWT refresh tokens, need to finish JS implementation
19 lines
346 B
Bash
Executable File
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 |