Clone wiki

Snuggle / Setup: Development environment

$ sudo apt-get install python-numpy python-scipy mercurial \
     python-pip build-essential libmysqlclient-dev nano mongodb apache2 \
     libapache2-mod-wsgi screen
$ sudo pip install oursql bottle beaker pymongo cherrypy pyyaml
$ cd <workspace directory>
$ hg clone https://bitbucket.org/grouplens/snuggle
$ sudo mkdir /sites
$ sudo ln -s <workspace directory>/snuggle /sites/snuggle.localhost.org

Now you're going to add the following line to your /etc/hosts file. <pre> 127.0.0.1 snuggle.localhost.org </pre>

$ cd /etc/apache2/mods-enabled
$ sudo ln -s ../mods-available/ssl.conf
$ sudo ln -s ../mods-available/ssl.load
$ sudo ln -s ../mods-available/wsgi.conf
$ sudo ln -s ../mods-available/wsgi.load
$ sudo ln -s /sites/snuggle.localhost.org/config/apache2/snuggle.localhost.org 
$ sudo service apache restart

If everything worked as expected, you should be able to load your local version of Snuggle by pointing your browser to "http://snuggle.localhost.org".

If something went wrong, check the tail of apache's error log

$ tail /var/log/apache2/error.log

Updated