mirror of
https://github.com/revanced/revanced-releases-api.git
synced 2025-04-30 14:34:28 +02:00
12 lines
355 B
Bash
Executable File
12 lines
355 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# This script is used to run the application
|
|
# It is used by the Dockerfile
|
|
|
|
# get number of cores
|
|
CORES=$(grep -c ^processor /proc/cpuinfo)
|
|
|
|
# Start the application
|
|
uvicorn main:app --host="$UVICORN_HOST" --port="$UVICORN_PORT" \
|
|
--workers="$CORES" --log-level="$UVICORN_LOG_LEVEL" --server-header \
|
|
--proxy-headers --forwarded-allow-ips="*" |