Questions tagged [Gunicorn] (31)

0
answer

Why gunicorn does not start.socket?

Try to do deploy django using Gunicorn Using command gunicorn --bind 0.0.0.0:8000 add_units.wsgi app is started. Next, create a file with gunicorn.service: [Unit] Description=gunicorn daemon Requires=gunicorn.socket After=network.target [Service] User=ec2-user RuntimeDirectory=gunicorn WorkingDirectory=/home/ec2-user/clos...
cleora.Runte asked April 18th 20 at 13:25
2
answers

Why not see SECRET_KEY when running via gunicorn?

When running via runserver - all excellent. Run it via: gunicorn djecommerce.wsgi:application - throws this: (cloudenv) root@makf1n:~/firm# gunicorn djecommerce.wsgi:application [2020-03-19 17:19:02 +0000] [24419] [INFO] Starting gunicorn 20.0.4 [2020-03-19 17:19:02 +0000] [24419] [INFO] Listening at: http://127.0.0.1:8000 ...
clifton.Hansen asked April 8th 20 at 18:17
1
answer

Why duplicated URL?

Problem: receive "https://example.com,example.com/some-uri/" instead of "https://example.com/some-uri/". In error.log there are no errors in access.log nothing, because the request does not reach. On localhost without, respectively, nginx everything works fine. So apparently, the problem occurs somewhere between flashcom an...
lonie30 asked April 4th 20 at 01:28
1
answer

How to configure nginx gunicorn aiohttp?

Good afternoon. How to deploy an application using nginx, gunicorn aiohttp? Off the dock only contains: gunicorn my_app_module:my_web_app --bind localhost:8080 --worker-class aiohttp.GunicornWebWorker As I understand it, you need a different start gunicron and configure nginx
Angeline.Collins36 asked April 4th 20 at 00:35
1
answer

Why gunicorn app only opens the folder where it is located?

Why not dogunicorn /home/dir/app and you can onlygunicorn app ?
Beaulah55 asked April 4th 20 at 00:27
1
answer

As output to the ssh console print() if Flask on the server is running using Gunicorn?

Hello! Connect to the Ubuntu server 18 via ssh. On the server running Flask via Gunicorn. How do I output to the console print() function of the flask app?
Maurine_Langworth asked April 2nd 20 at 16:28
1
answer

How to fix ModuleNotFoundError: No module named 'mainpage' | Django + Gunicorn + docker-compose?

Hi. Run $ sudo docker-compose-f prod.yml up, I get this error from the header when you run the gunicorn workarou. Here is my Dockerfile:spoilerFROM python:buster ENV PYTHONUNBUFFERED 1 COPY app /app WORKDIR /app RUN pip install-r requirements/prod.txt Here is my prod.yml:spoilerversion: '3' volumes: pgdata: services: w...
Rocky.Cro asked March 27th 20 at 11:26
1
answer

How to know who to restrict access with IP?

The essence of this. There is a bot (django -> gunicorn -> nginx -> debian 9 -> dedicated server with 24 Cores 64GB of RAM). The server receives about 100 requests per minute, then colback stops taking. A suspicion that something from the chain above the limit the requests per IP. IPtables is not installed. the ...
shaina_Leuschke asked March 25th 20 at 12:40
1
answer

How to close the session and gunicorn'?

VDS hosted on website(flask, caddy) But I noticed that it "eats" a lot of resources I would like to close this case. It seems to be clearly explained(I hope) You have to kill all gunicorn processes so that nothing worked. (to reinstall the system is not an option))) Google did not help, all the guides how it's all set, and ...
Jordy.Ferry asked March 25th 20 at 11:48
1
answer

How to solve the problem with running gunicorn?

Good day, when you start gunicorn error: [2019-06-17 13:11:15 +0000] [1120] [INFO] Starting gunicorn 19.9.0 [2019-06-17 13:11:15 +0000] [1120] [INFO] Listening at: 127.0.0.1:8000 (1120) [2019-06-17 13:11:15 +0000] [1120] [INFO] Using worker: sync [2019-06-17 13:11:15 +0000] [1123] [INFO] Booting worker with pid: 1123 [2019-...
valentin.Dougl asked March 24th 20 at 09:52