mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
20 lines
651 B
Bash
Executable file
20 lines
651 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Check the value of DISPATCHARR_ENV and run the corresponding program
|
|
case "$DISPATCHARR_ENV" in
|
|
"dev")
|
|
echo "DISPATCHARR_ENV is set to 'dev'. Running Development Program..."
|
|
apk add nodejs npm
|
|
cd /app/frontend && npm install
|
|
cd /app
|
|
exec /usr/sbin/uwsgi --ini uwsgi.dev.ini
|
|
;;
|
|
"aio")
|
|
echo "DISPATCHARR_ENV is set to 'aio'. Running All-in-One Program..."
|
|
exec /usr/sbin/uwsgi --ini uwsgi.aio.ini
|
|
;;
|
|
*)
|
|
echo "DISPATCHARR_ENV is not set or has an unexpected value. Running standalone..."
|
|
exec /usr/sbin/uwsgi --ini uwsgi.ini
|
|
;;
|
|
esac
|