I'm using GCP's Cloud run and didn't know much about "gunicorn", so a memorandum.
"Gunicorn" is a Python WSGI HTTP Server for UNIX. "WSGI" is a standardized interface definition for connecting a web server and a web application (or web application framework) in Python. In the past, it was implemented in various states, but is it a standardized version?
The following is the command when the last server of GCP is started.
#exec: Execute the specified command
# --bind IP:The order of PORT. Origin to connect. If left blank, will IP be the default setting?
# --workers :Number of processes
# --threads: number of threads
# app:app → Left is source code specification, right is name.
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 app:app
Recommended Posts