mirror of
https://github.com/aljazceru/njump.git
synced 2026-01-17 05:14:25 +01:00
18 lines
496 B
Makefile
18 lines
496 B
Makefile
build:
|
|
CC=$(which musl-gcc) go build -ldflags='-s -w -linkmode external -extldflags "-static"' -o ./njump
|
|
|
|
deploy: build
|
|
ssh root@turgot 'systemctl stop njump'
|
|
rsync njump turgot:njump/njump-new
|
|
ssh turgot 'mv njump/njump-new njump/njump'
|
|
ssh root@turgot 'systemctl start njump'
|
|
|
|
refresh_build: scss prettier
|
|
go build -tags=nocache -o ./tmp/main .
|
|
|
|
scss:
|
|
sass static/styles.scss static/styles.css
|
|
|
|
prettier:
|
|
prettier -w static/*.css static/*.scss templates/*.html
|