mirror of
https://github.com/casjaysdevdocker/tools
synced 2025-09-20 09:57:40 -04:00
🗃️ Committing everything that changed 🗃️
applications/ configs/ lists/ wwwroot/
This commit is contained in:
17
applications/deno/scripts/commands.sh
Normal file
17
applications/deno/scripts/commands.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
EXEC_CMD_BIN="deno" # command to execute
|
||||
EXEC_CMD_ARGS="task start" # command arguments
|
||||
server_files="$(find "$DATA_DIR" "$DATA_DIR/src" -maxdepth 1 -type f -iname 'app.ts' -iname 'server.ts' -iname'index.tx' | head -n1)"
|
||||
[ -d "$DATA_DIR" ] && cd "$DATA_DIR" || exit 1
|
||||
if [ -n "$START_SCRIPT" ] && [ -f "$START_SCRIPT" ]; then
|
||||
EXEC_CMD_BIN="$START_SCRIPT"
|
||||
elif [ -f "$server_files" ]; then
|
||||
EXEC_CMD_ARGS="$server_files"
|
||||
elif [ -f "src/index.ts" ]; then
|
||||
EXEC_CMD_ARGS="src/index.ts"
|
||||
elif [ -f "index.ts" ]; then
|
||||
EXEC_CMD_ARGS="index.ts"
|
||||
elif [ -f "app.ts" ]; then
|
||||
EXEC_CMD_ARGS="app.ts"
|
||||
elif [ -f "server.ts" ]; then
|
||||
EXEC_CMD_ARGS="server.ts"
|
||||
fi
|
Reference in New Issue
Block a user