~kameliya/tori

ref: c2e19c24171f299de10773ce03ffe6db2a602bd8 tori/backend/Makefile -rw-r--r-- 521 bytes
c2e19c24Asherah Connor improve logging somewhat 1 year, 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
DEPLOY_HOST = miriam
DEPLOY_BINARY = /var/www/tori/torid
DEPLOY_MIGRATIONS = /var/www/tori/migrations

.PHONY: torid torid-openbsd deploy
torid:
	env GOOS=linux GOARCH=amd64 go build -o torid

torid-openbsd:
	env GOOS=openbsd GOARCH=amd64 go build -o torid-openbsd

deploy: torid-openbsd
	ssh ${DEPLOY_HOST} doas rcctl stop torid
	rsync -avzP torid-openbsd ${DEPLOY_HOST}:${DEPLOY_BINARY}
	rsync -avzP --delete migrations/ ${DEPLOY_HOST}:${DEPLOY_MIGRATIONS}
	ssh ${DEPLOY_HOST} doas rcctl start torid

clean:
	-rm torid