diff --git a/.gitignore b/.gitignore index 0d5ca9a..2596d41 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ *.pyc .Python .sass-cache +.vagrant /bin /include diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 9b2d6a9..87004d8 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -43,6 +43,9 @@ In chronological order: * Matías Ducasa * Spanish translation - + +* Daniel Gräber + * Added ansible for provisioning + * [Your name or handle] <[email or website]> * [Brief summary of your changes] diff --git a/Vagrantfile b/Vagrantfile index 22fbb9b..2693143 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -4,9 +4,10 @@ # This is the Vagrant config file for setting up an environment for Isso development. # It requires: # -# * Vagrant (http://vagrantup.com) -# * A VM engine, like VirtualBox (http://virtualbox.org) +# * Vagrant (https://vagrantup.com) +# * A VM engine, like VirtualBox (https://virtualbox.org) # * The Vagrant-Hostmanager plugin (https://github.com/smdahlen/vagrant-hostmanager) +# * Ansible (https://www.ansible.com) # # With them installed, cd into this directory and do 'vagrant up'. It's possible Vagrant will # ask for your root password so it can update your /etc/hosts file. Once it's happily churning out @@ -17,47 +18,20 @@ # to get into the VM. Useful info about it: # # * Running Ubuntu 14.04 -# * Isso is running on uWSGI via port 8080 -# * Actual webserver is Apache2, using mod_proxy_uwsgi to talk to uWSGI -# * uWSGI log file is /tmp/uwsgi.log -# * Isso DB file is /tmp/isso/comments.db -# * Isso log file is /tmp/isso/isso.log +# * Isso is running on uWSGI +# * Actual webserver is Nginx to talk to uWSGI over a unix socket +# * uWSGI log file is /var/log/uwsgi/apps/isso.log +# * Isso DB file is /var/isso/comments.db +# * Isso log file is /var/log/isso.log +# +# 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! -$bootstrap = < - ServerName isso-dev.local - - ServerAdmin webmaster@localhost - DocumentRoot /var/www/isso/ - - ErrorLog ${APACHE_LOG_DIR}/error.log - CustomLog ${APACHE_LOG_DIR}/access.log combined - - ProxyPass / uwsgi://127.0.0.1:8080/ - - - -# vim: syntax=apache ts=4 sw=4 sts=4 sr noet