diff --git a/Makefile b/Makefile index 22fa937..9cb3175 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ DOCS_HTML_DST := docs/_build/html all: man js site init: - (cd isso/js; bower install almond requirejs requirejs-text jade) + (cd isso/js; bower --allow-root install almond requirejs requirejs-text jade) check: @echo "Python 2.x" diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..90c40df --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,86 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +# 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) +# * The Vagrant-Hostmanager plugin (https://github.com/smdahlen/vagrant-hostmanager) +# +# 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 +# console output, go get a coffee :) +# +# The resulting VM should be accessible at http://isso-dev.local/ so you can try the demo page out. +# Edit files in your checkout as usual. If you need to look at log files and stuff, 'vagrant ssh' +# 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 +# +# Enjoy! + +$bootstrap = <

Isso Demo

- + +
diff --git a/share/isso-dev.conf b/share/isso-dev.conf new file mode 100644 index 0000000..9ccee84 --- /dev/null +++ b/share/isso-dev.conf @@ -0,0 +1,31 @@ +# Isso configuration file +# vim: set filetype=ini + +# These are the settings used to run Isso inside of the vagrant-powered developer setup. + +[general] + +dbpath = /tmp/isso/comments.db +host = http://isso-dev.local/ +max-age = 15m +notify = stdout +log-file = /tmp/isso/isso.log + +[moderation] +enabled = false +purge-after = 30d + +[server] +profile = off + +[guard] +enabled = false + +[markup] +options = strikethrough, autolink, fenced_code, no_intra_emphasis +allowed-elements = +allowed-attributes = + +[hash] +salt = Eech7co8Ohloopo9Ol6baimi +algorithm = pbkdf2 diff --git a/share/isso-dev.local.apache-conf b/share/isso-dev.local.apache-conf new file mode 100644 index 0000000..3186d81 --- /dev/null +++ b/share/isso-dev.local.apache-conf @@ -0,0 +1,14 @@ + + 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 /isso/ uwsgi://127.0.0.1:8080/ + + + +# vim: syntax=apache ts=4 sw=4 sts=4 sr noet