From b37487dcef40a66c6e2aa58db45be7cc8f07a3ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gr=C3=A4ber?= Date: Thu, 19 Feb 2015 16:40:46 +0100 Subject: [PATCH] Add comments for debugging --- Vagrantfile | 3 +++ ansible/files/uwsgi.ini | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index ea19fee..2693143 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -27,6 +27,9 @@ # When the VM is getting rebooted vagrant mounts the shared folder after uWSGI is getting startet. To fix this issue for # the moment you need to 'vagrant ssh' into the VM and execute 'sudo service uwsgi restart'. # +# For debugging with _pudb_ stop uWSGI service and start it manually +# 'sudo uwsgi --ini /etc/uwsgi/apps-available/isso.ini'. +# # Enjoy! Vagrant.configure(2) do |config| diff --git a/ansible/files/uwsgi.ini b/ansible/files/uwsgi.ini index f06094f..c40d601 100644 --- a/ansible/files/uwsgi.ini +++ b/ansible/files/uwsgi.ini @@ -16,5 +16,9 @@ module = isso.run env = ISSO_SETTINGS=/vagrant/share/isso-dev.conf env = PYTHON_EGG_CACHE=/tmp -daemonize = /var/log/uwsgi/uwsgi.log +# uncomment for debugging +# daemonize = /var/log/uwsgi/uwsgi.log py-autoreload = 1 + +# prevent uWSGI from remapping stdin to /dev/null +honour-stdin = true