Skip to content

Commit 43aa4b2

Browse files
committed
Simplify entire application configuration
1 parent 930e4eb commit 43aa4b2

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
option_settings:
22
aws:elasticbeanstalk:container:python:
33
WSGIPath: application:application
4-
aws:elasticbeanstalk:application:environment:
5-
PORT: "8000"
6-
aws:elasticbeanstalk:environment:proxy:
7-
ProxyServer: nginx

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: gunicorn -w 4 -k uvicorn.workers.UvicornWorker application:application --bind 0.0.0.0:8000
1+
web: gunicorn application:application --bind 0.0.0.0:8000 -k uvicorn.workers.UvicornWorker

application.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from fastapi.middleware.cors import CORSMiddleware
33
from backend.app.main import app
44

5-
# Update the application instance name to match the EB configuration
65
application = app
76

87
# Add CORS middleware

0 commit comments

Comments
 (0)