summaryrefslogtreecommitdiff
path: root/app/Makefile
diff options
context:
space:
mode:
authorHorus32015-02-19 02:38:34 +0100
committerHorus32015-02-19 02:38:34 +0100
commitf53fa2f2f9eb445527e0a1b29b9e37c224499233 (patch)
tree229cc07cb4713a01393d4775f98ec733baa2afe7 /app/Makefile
parent58e63343703e0c3f3c12934e62fc0f4575761869 (diff)
downloadstatuspage-f53fa2f2f9eb445527e0a1b29b9e37c224499233.tar.gz
Reorder files and parses templates.
Diffstat (limited to 'app/Makefile')
-rw-r--r--app/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/Makefile b/app/Makefile
new file mode 100644
index 0000000..f246e69
--- /dev/null
+++ b/app/Makefile
@@ -0,0 +1,21 @@
+export STATUS_DB_DRIVER:=sqlite3
+export STATUS_DB_CREDENTIALS:=../db/status.db
+
+all: kill build run
+
+clean:
+ @echo "Removing sqlite3 database..."
+ @rm $$STATUS_DB_CREDENTIALS
+ @echo "Removing binary..."
+ @rm statuspage
+ @echo "Done"
+
+build:
+ go build -o statuspage
+
+run:
+ ./statuspage &
+
+kill:
+ @echo "Killing running instances..."
+ @pkill statuspage || true