From 570f81f3ebc55fa5c2870efc21718c8d40f47a58 Mon Sep 17 00:00:00 2001 From: Mauricio Baeza Date: Mon, 30 Oct 2017 19:58:31 -0600 Subject: [PATCH] Separar configuracion de uwsgi --- .gitignore | 1 + source/app/{main.ini => main.ini.example} | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) rename source/app/{main.ini => main.ini.example} (52%) diff --git a/.gitignore b/.gitignore index 3f3eb5e..f850e79 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ __pycache__/ *.log local_settings.py conf.py +main.ini source/fixtures source/media diff --git a/source/app/main.ini b/source/app/main.ini.example similarity index 52% rename from source/app/main.ini rename to source/app/main.ini.example index e4a68ca..5031319 100644 --- a/source/app/main.ini +++ b/source/app/main.ini.example @@ -1,15 +1,17 @@ [uwsgi] +#~ Debe de corresponder con tu configuracion proxi en tu servidor web socket = 127.0.0.1:3033 uid = nginx gid = nginx -#~ Establece una ruta accesible para nginx o el servidor web que uses +#~ Establece una ruta accesible para el servidor web chdir = /srv/app/empresa-libre/app wsgi-file = main.py callable = app master = true +#~ Puedes configurar de acuerdo a los recursos de tu servidor processes = 4 threads = 4 thunder-lock = true #~ stats = 127.0.0.1:9191 -#~ Establece una ruta accesible para nginx o el servidor web que uses +#~ Establece una ruta accesible para el servidor web logger = file:/srv/log/empresalibre-uwsgi.log