mirror of
https://github.com/Novartis/cellxgene-gateway.git
synced 2026-10-08 23:48:12 +08:00
updated start scripts to run in subshells
This commit is contained in:
Regular → Executable
+1
-1
@@ -38,4 +38,4 @@ if [ -z "$CELLXGENE_DATA" ] && [ -z "$CELLXGENE_BUCKET" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cellxgene-gateway
|
exec cellxgene-gateway
|
||||||
Regular → Executable
+1
-1
@@ -76,7 +76,7 @@ cd "$SCRIPT_DIR"
|
|||||||
# Additional options you can add via environment variables:
|
# Additional options you can add via environment variables:
|
||||||
# - GUNICORN_MAX_REQUESTS: Restart worker after N requests (prevents memory leaks)
|
# - GUNICORN_MAX_REQUESTS: Restart worker after N requests (prevents memory leaks)
|
||||||
# - GUNICORN_MAX_REQUESTS_JITTER: Add randomness to max-requests
|
# - GUNICORN_MAX_REQUESTS_JITTER: Add randomness to max-requests
|
||||||
gunicorn cellxgene_gateway.gateway:app \
|
exec gunicorn cellxgene_gateway.gateway:app \
|
||||||
--workers "$WORKERS" \
|
--workers "$WORKERS" \
|
||||||
--worker-class "$WORKER_CLASS" \
|
--worker-class "$WORKER_CLASS" \
|
||||||
--bind "$BIND" \
|
--bind "$BIND" \
|
||||||
|
|||||||
Regular → Executable
+2
-1
@@ -53,6 +53,7 @@ export GATEWAY_ENABLE_BACKED_MODE=${GATEWAY_ENABLE_BACKED_MODE:-true}
|
|||||||
# Check if uwsgi is installed
|
# Check if uwsgi is installed
|
||||||
if ! command -v uwsgi &> /dev/null; then
|
if ! command -v uwsgi &> /dev/null; then
|
||||||
echo "Error: uwsgi not found. Install with: pip install uwsgi"
|
echo "Error: uwsgi not found. Install with: pip install uwsgi"
|
||||||
|
exit 1
|
||||||
else
|
else
|
||||||
# Display configuration
|
# Display configuration
|
||||||
echo "Starting Cellxgene Gateway with uWSGI..."
|
echo "Starting Cellxgene Gateway with uWSGI..."
|
||||||
@@ -70,7 +71,7 @@ else
|
|||||||
# Start uWSGI with optimized settings
|
# Start uWSGI with optimized settings
|
||||||
# Additional options you can add via environment variables:
|
# Additional options you can add via environment variables:
|
||||||
# - UWSGI_MAX_REQUESTS: Restart worker after N requests (prevents memory leaks)
|
# - UWSGI_MAX_REQUESTS: Restart worker after N requests (prevents memory leaks)
|
||||||
uwsgi \
|
exec uwsgi \
|
||||||
--http "$HOST:$PORT" \
|
--http "$HOST:$PORT" \
|
||||||
--module cellxgene_gateway.gateway:app \
|
--module cellxgene_gateway.gateway:app \
|
||||||
--workers "$WORKERS" \
|
--workers "$WORKERS" \
|
||||||
|
|||||||
Reference in New Issue
Block a user