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