mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-01 21:52:19 +00:00
Update scripts for new location
This commit is contained in:
parent
d268d939eb
commit
ef66e1c8df
8 changed files with 26 additions and 20 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue