From c26d581053bbfb9af2dcb32810477a388304e92e Mon Sep 17 00:00:00 2001 From: Guillermo Ramos Date: Mon, 17 Feb 2025 15:53:35 +0100 Subject: waev: load user/path from env --- waev/run | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'waev/run') 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 -- cgit v1.2.3