mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-21 16:11:56 +00:00
24 lines
443 B
Bash
Executable File
24 lines
443 B
Bash
Executable File
#!/bin/bash
|
|
# Easy deploy script..
|
|
|
|
echo 'Fetching latest git commit'
|
|
cd /var/www/goscrobble-api
|
|
git pull
|
|
|
|
echo 'Building backend'
|
|
go build -o goscrobble cmd/goscrobble/*.go
|
|
|
|
|
|
echo 'Fetching lastest frontend commit'
|
|
cd /var/www/goscrobble-web
|
|
git pull
|
|
|
|
echo 'Installing frontend packages'
|
|
npm install --production
|
|
|
|
echo 'Building frontend'
|
|
npm run build --env production
|
|
|
|
cd ..
|
|
echo 'Restarting Go service'
|
|
systemctl restart goscrobble.service |