about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--justfile11
1 files changed, 11 insertions, 0 deletions
diff --git a/justfile b/justfile
new file mode 100644
index 0000000..ab91b96
--- /dev/null
+++ b/justfile
@@ -0,0 +1,11 @@
+prod := "starlight"
+
+prod_bin := "/opt/awake/awake"
+prod_db := "/var/awake/database.sqlite"
+
+get-db:
+	rsync -aP {{prod}}:{{prod_db}} .
+
+deploy:
+	cargo build --release --target x86_64-unknown-linux-gnu
+	rsync -aP target/x86_64-unknown-linux-gnu/release/awake {{prod}}:{{prod_bin}}
\ No newline at end of file