mirror of
https://github.com/craigerl/aprsd.git
synced 2025-06-24 21:15:18 -04:00
Update the admin and setup.sh for container
This commit is contained in:
parent
24db814c82
commit
044ea4cc9a
@ -1,6 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
source /app/.venv/bin/activate
|
||||||
|
|
||||||
if [ ! -z "${APRSD_PLUGINS}" ]; then
|
if [ ! -z "${APRSD_PLUGINS}" ]; then
|
||||||
OLDIFS=$IFS
|
OLDIFS=$IFS
|
||||||
IFS=','
|
IFS=','
|
||||||
@ -9,7 +11,7 @@ if [ ! -z "${APRSD_PLUGINS}" ]; then
|
|||||||
IFS=$OLDIFS
|
IFS=$OLDIFS
|
||||||
# call your procedure/other scripts here below
|
# call your procedure/other scripts here below
|
||||||
echo "Installing '$plugin'"
|
echo "Installing '$plugin'"
|
||||||
pip3 install --user $plugin
|
uv pip install $plugin
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
if [ ! -z "${APRSD_EXTENSIONS}" ]; then
|
if [ ! -z "${APRSD_EXTENSIONS}" ]; then
|
||||||
@ -20,7 +22,7 @@ if [ ! -z "${APRSD_EXTENSIONS}" ]; then
|
|||||||
IFS=$OLDIFS
|
IFS=$OLDIFS
|
||||||
# call your procedure/other scripts here below
|
# call your procedure/other scripts here below
|
||||||
echo "Installing '$extension'"
|
echo "Installing '$extension'"
|
||||||
pip3 install --user $extension
|
uv pip install $extension
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -40,5 +42,7 @@ fi
|
|||||||
export COLUMNS=200
|
export COLUMNS=200
|
||||||
#exec gunicorn -b :8000 --workers 4 "aprsd.admin_web:create_app(config_file='$APRSD_CONFIG', log_level='$LOG_LEVEL')"
|
#exec gunicorn -b :8000 --workers 4 "aprsd.admin_web:create_app(config_file='$APRSD_CONFIG', log_level='$LOG_LEVEL')"
|
||||||
# exec gunicorn -b :8000 --workers 4 "aprsd.wsgi:app"
|
# exec gunicorn -b :8000 --workers 4 "aprsd.wsgi:app"
|
||||||
exec uwsgi --http :8000 --gevent 1000 --http-websockets --master -w aprsd.wsgi --callable app
|
#exec uwsgi --http :8000 --gevent 1000 --http-websockets --master -w aprsd.wsgi --callable app
|
||||||
#exec aprsd listen -c $APRSD_CONFIG --loglevel ${LOG_LEVEL} ${APRSD_LOAD_PLUGINS} ${APRSD_LISTEN_FILTER}
|
#exec aprsd listen -c $APRSD_CONFIG --loglevel ${LOG_LEVEL} ${APRSD_LOAD_PLUGINS} ${APRSD_LISTEN_FILTER}
|
||||||
|
#
|
||||||
|
uv run aprsd admin web -c $APRSD_CONFIG --loglevel ${LOG_LEVEL}
|
||||||
|
@ -20,7 +20,7 @@ if [ ! -z "${APRSD_PLUGINS}" ]; then
|
|||||||
IFS=$OLDIFS
|
IFS=$OLDIFS
|
||||||
# call your procedure/other scripts here below
|
# call your procedure/other scripts here below
|
||||||
echo "Installing '$plugin'"
|
echo "Installing '$plugin'"
|
||||||
uv pip install --user $plugin
|
uv pip install $plugin
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ if [ ! -z "${APRSD_EXTENSIONS}" ]; then
|
|||||||
IFS=$OLDIFS
|
IFS=$OLDIFS
|
||||||
# call your procedure/other scripts here below
|
# call your procedure/other scripts here below
|
||||||
echo "Installing '$extension'"
|
echo "Installing '$extension'"
|
||||||
uv pip install --user $extension
|
uv pip install $extension
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user