simplified startup script to make it easier to deploy on my server

This commit is contained in:
rawleyIfowler
2022-02-23 16:37:01 -06:00
parent a1bdc8ca31
commit f7c6407ccb
3 changed files with 9 additions and 8 deletions

8
main.sh Normal file → Executable file
View File

@@ -1,7 +1,7 @@
#!/bin/sh
if [ ./main & ]; then
exit 0
# WIP: Do not use this at the moment
if [ -e "main" ]; then
./main.go &> /var/log/rawleyxyz/log
else
exit 1
go build "main.go" && ./main &> /var/log/rawleyxyz/log
fi