Skip to content

Commit

Permalink
Merge pull request #407 from LACMTA:2023-api-optimization
Browse files Browse the repository at this point in the history
Fix gunicorn command to use uvicorn
  • Loading branch information
albertkun authored Nov 21, 2023
2 parents 609320e + 7359dae commit 14e1ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastapi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ print(f'export DB_NAME={result.path[1:]}')" > /tmp/env.sh && \
echo "auth_file = /etc/pgbouncer/userlist.txt" >> /etc/pgbouncer/pgbouncer.ini && \
echo "client_login_timeout = 120" >> /etc/pgbouncer/pgbouncer.ini && \
gosu pgbouncer pgbouncer /etc/pgbouncer/pgbouncer.ini & \
exec gunicorn -k uvicorn.workers.UvicornWorker app.main:app --bind 0.0.0.0:80 --workers 2
exec uvicorn app.main:app --host 0.0.0.0 --port 80 --workers 2
EXPOSE 80

0 comments on commit 14e1ceb

Please sign in to comment.