turn relayer into a server framework and put actual relay code into ./basic

This commit is contained in:
fiatjaf
2021-12-25 21:22:40 -03:00
parent ac93e5c028
commit 30eae726c1
12 changed files with 268 additions and 203 deletions

7
basic/Makefile Normal file
View File

@@ -0,0 +1,7 @@
relayer: $(shell find . -name "*.go")
go build -ldflags="-s -w" -o ./relayer
deploy: relayer
ssh root@turgot 'systemctl stop relayer'
scp relayer turgot:relayer/relayer
ssh root@turgot 'systemctl start relayer'