From 5ba5da21c01a16538df2f8cc0e6e2b8637b4fdb0 Mon Sep 17 00:00:00 2001 From: Anderson Banihirwe Date: Tue, 10 Sep 2024 16:12:55 -0700 Subject: [PATCH] Refactor Procfile and fly.toml files --- Procfile | 1 - fly.prod.toml | 4 ++-- fly.staging.toml | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) delete mode 100644 Procfile diff --git a/Procfile b/Procfile deleted file mode 100644 index bca02e7..0000000 --- a/Procfile +++ /dev/null @@ -1 +0,0 @@ -web: gunicorn -w $OFFSETS_DB_WEB_CONCURRENCY -t 120 -k uvicorn.workers.UvicornWorker offsets_db_api.main:app --config gunicorn_config.py --access-logfile '-' --error-logfile '-' diff --git a/fly.prod.toml b/fly.prod.toml index afb344b..4dc77c7 100644 --- a/fly.prod.toml +++ b/fly.prod.toml @@ -23,11 +23,11 @@ PORT = "8000" release_command = "bash -l release.sh" [processes] - web = "gunicorn -w $OFFSETS_DB_WEB_CONCURRENCY -t 120 -k uvicorn.workers.UvicornWorker offsets_db_api.main:app --config gunicorn_config.py --access-logfile '-' --error-logfile '-'" + app = "gunicorn -w $OFFSETS_DB_WEB_CONCURRENCY -t 120 -k uvicorn.workers.UvicornWorker offsets_db_api.main:app --config gunicorn_config.py --access-logfile '-' --error-logfile '-'" [[services]] -processes = ["web"] +processes = ["app"] protocol = "tcp" internal_port = 8000 force_https = true diff --git a/fly.staging.toml b/fly.staging.toml index 365d18c..c870936 100644 --- a/fly.staging.toml +++ b/fly.staging.toml @@ -25,10 +25,10 @@ release_command = "bash -l release.sh" [processes] - web = "gunicorn -w $OFFSETS_DB_WEB_CONCURRENCY -t 120 -k uvicorn.workers.UvicornWorker offsets_db_api.main:app --config gunicorn_config.py --access-logfile '-' --error-logfile '-'" + app = "gunicorn -w $OFFSETS_DB_WEB_CONCURRENCY -t 120 -k uvicorn.workers.UvicornWorker offsets_db_api.main:app --config gunicorn_config.py --access-logfile '-' --error-logfile '-'" [[services]] -processes = ["web"] +processes = ["app"] protocol = "tcp" internal_port = 8000 force_https = true