gunicorn Questions
3
I have a flask application.
I run it in production with this command:
python -m gunicorn -w 1 -b 0.0.0.0:5000 "path.to.wsgi:return_app()"
Instead, I want to run it inside a my_file.py
I ...
19
Solved
I successfully install gunicorn:
remote: -----> Removing .DS_Store files
remote: -----> Python app detected
remote: -----> Installing dependencies with pip
remote: Collecting gunicorn==19...
7
Solved
I have looked around for a while, and I was surprised not finding any information whether Gunicorn runs on Windows or not.
Does anyone know if that is the case, and if so, where can I find some doc...
5
I've installed gunicorn inside my virtualenv.
From this directory:
manage.py
/onbytes/wsgi.py
I run the following:
gunicorn onbytes.wsgi:application
And I get the following error:
Traceback...
2
I am load-testing a gunicorn server(uses Uvicorn workers with fastapi) on AWS EC2 machine that I sshed into and port mapped to(doing ssh -L 8000:localhost:8000), for all requests at port 8000 on my...
Acetum asked 30/1, 2022 at 8:3
2
Solved
I'm running a Debian web server with nginx and gunicorn running a django app. I've got everything up and running just fine but after rebooting the server I get a 502 bad gateway error. I've traced ...
Aram asked 8/5, 2017 at 21:27
1
Stack:
Ubuntu (20.04 LTS)
Nginx
Postgresql (v13.3)
An AWS load balancer sends traffic to the Ubuntu instance(k8s cluster), which is handled by Nginx, which forwards on to Django (4.0.3) running in ...
Redo asked 22/3, 2022 at 9:55
4
First thing, I am not sure if this is better here or on ask ubuntu (ubuntu did not have a 'gunicorn' tag so I think i'm in the right place). If it is not appropriate here just drop it in the commen...
2
My goal:
I intend to follow "The Twelve-Factor App" methodology for building my Django app on Heroku.
Introduction:
I'm following the "Getting Started with Django on Heroku" quick start guide. A...
Avocation asked 12/9, 2013 at 0:3
3
Solved
We are using the https://github.com/tiangolo/uvicorn-gunicorn-fastapi-docker FastAPI and were able to customize our logging with a gunicorn logging file.
However, we are not able to change the deta...
1
Solved
Let's say I have a simple flask app:
import time
from flask import Flask
app = Flask(__name__)
@app.route("/")
def index():
for i in range(10):
print(f"Slept for {i + 1}/{seconds...
7
Solved
I've been working on a new dev platform using nginx/gunicorn and Flask for my application.
Ops-wise, everything works fine - the issue I'm having is with debugging the Flask layer. When there's an...
2
I have a hard time finding documentation for creating Procfiles using flask with gunicorn and Heroku. Somewhere I found that the syntax is:
web: gunicorn my_folder.my_module:app. But I can't make i...
4
I have a project that is set up to run with docker One one machine which is ubuntu I have been running it fine but recently I have tried to run it on my windows laptop and am getting a ModuleNotFou...
4
Solved
I'm trying to get django (on gunicorn) and nginx running with docker. Unfortunately, I keep getting a Bad Request (400) error after I run docker-compose up -d --build. Help.
I have tried changing ...
Corroboration asked 8/5, 2019 at 22:29
2
My Environment
FastAPI
Gunicorn & Uvicorn Worker
AWS EC2 c5.2xlarge (8 vCPU)
Document
https://fastapi.tiangolo.com/deployment/server-workers/
Question
Currently I'm using 24 Uvicorn workers i...
1
Solved
If all the fastapi endpoints are defined as async def, then there will only be 1 thread that is running right? (assuming a single uvicorn worker).
Just wanted to confirm in such a setup, we will ne...
3
Solved
After I deployed my Django App last night I got tons of strange Emails saying:
ERROR: Invalid HTTP_HOST header: '/webapps/example_com/run/gunicorn.sock
I'm sure this is somehow related to the fo...
3
Solved
I am dealing with the project deposition made on FastAPI to a remote ubuntu server. I'll try to run the project from terminal (using SSH connection) by the command
gunicorn -k uvicorn.workers.Uvico...
3
Solved
I had a working code running flask with gunicorn (eventlet worker) in docker. It's also working in production, but on my machine, it started doing this. I can't find anything on google about this t...
5
Solved
I'm running django on Digital Ocean with gunicorn and nginx. Gunicorn for serving the django and nginx for static files.
Upon uploading a file via website, I cant save to a folder in /home direct...
Bemean asked 31/1, 2015 at 6:57
3
Solved
I start supervisor as root:
sudo supervisord -c /etc/supervisor/supervisord.conf
Then I try to start up supervisorctl:
(myapp)appuser@ip-172-31-21-65:~/appuser$ supervisorctl -c /etc/supervisor/...
Joaniejoann asked 18/11, 2015 at 22:31
2
I am using Ubuntu 18 servers and using nginx with gunicorn I follow Digitalocean tutorial for server setup. I successfully did for one project but now I need to run multiple projects under by serve...
Watery asked 26/1, 2019 at 5:11
4
Solved
I have a FastAPI application that I am running on port 30000 using Uvicorn programmatically. Now I want to run the same application on port 8443 too. The same application needs to run on both these...
2
I'm running gunicorn as:
guiconrn --bind=0.0.0.0:5000 --log-file gunicorn.log myapp:app
Seems like gunicorn.log keeps growing. Is there a way to specify a max size of the log file, so that if it r...
Waddle asked 18/4, 2018 at 15:54
© 2022 - 2024 — McMap. All rights reserved.