mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-01 13:42:20 +00:00
0.0.21
- Add ez deploy script - Half implemented JWT refresh tokens, need to finish JS implementation
This commit is contained in:
parent
7c3b98a828
commit
fb9ebef49c
18 changed files with 228 additions and 29 deletions
19
init/deploy.sh
Executable file
19
init/deploy.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue