modify checkbox text in notes
This commit is contained in:
@@ -38,6 +38,16 @@ esac
|
||||
PORT="${PORT:-$DEFAULT_PORT}"
|
||||
HOST="${HOST:-$DEFAULT_HOST}"
|
||||
|
||||
# Prevent the main app from proxying to itself. Without an explicit
|
||||
# SENSORS_API_URL the client targets localhost:8001, so main must not listen
|
||||
# there as well.
|
||||
if [ "$APP" = "main" ] && [ -z "${SENSORS_API_URL:-}" ] && [ "$PORT" = "8001" ]; then
|
||||
echo "Refusing to start main on port 8001: SENSORS_API_URL would default to" >&2
|
||||
echo "http://localhost:8001 and the app would call itself recursively." >&2
|
||||
echo "Use another port (for example 8000) or set SENSORS_API_URL explicitly." >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
if [ "$APP" = "main" ]; then
|
||||
SECRET_FILE=".secret_key"
|
||||
if [ -z "${SECRET_KEY:-}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user