summaryrefslogtreecommitdiff
path: root/waev/run
diff options
context:
space:
mode:
Diffstat (limited to 'waev/run')
-rwxr-xr-xwaev/run22
1 files changed, 14 insertions, 8 deletions
diff --git a/waev/run b/waev/run
index 725de03..3825411 100755
--- a/waev/run
+++ b/waev/run
@@ -1,10 +1,16 @@
-#!/bin/sh
+#!/bin/execlineb
-source $(dirname $0)/env
+envfile env
-s6-setuidgid gramos sh -c '
-cd ~/git/waev
-mix deps.get
-mix phx.digest
-exec mix phx.server
-'
+importas -S WAEV_USER
+s6-setuidgid $WAEV_USER
+
+importas -S WAEV_PATH
+cd $WAEV_PATH
+
+foreground {
+ mix deps.get
+ mix phx.digest
+}
+
+mix phx.server