Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Pylons-based web application running screenshots.debian.net

branch: master
README.txt
Installation using Apache and mod_wsgi on Squeeze
===================================================

Package installation::

 apt-get install libapache2-mod-wsgi python-imaging python-apt \
    memcached python-debian
 
Apache virtual host configuration::

 <VirtualHost *:80>
     ServerName screenshots.debian.net
     ServerAlias screenshots.workaround.org
     ServerAdmin email@christoph-haas.de
 
     #WSGIPythonHome /home/debshots/live/virtualenv
     WSGIDaemonProcess live user=debshots group=users threads=25
     WSGIProcessGroup live
     Alias /screenshots/ /home/debshots/live/screenshots/approved/
 
     # more Alias config for cgi-bin, et al
     WSGIScriptAlias / /home/debshots/live/live.wsgi
     <Directory /home/debshots/>
         Order deny,allow
         Allow from all
     </Directory>
 
     ErrorLog ${APACHE_LOG_DIR}/error-screenshots-live.log
     LogLevel warn
     CustomLog ${APACHE_LOG_DIR}/access-screenshots-live.log combined
 </VirtualHost>

live.wsgi::

 import os, sys, site
 BASEDIR = os.path.dirname(__file__)
 INIFILE = os.path.join(BASEDIR, 'live.ini')
 site.addsitedir(os.path.join(BASEDIR,'virtualenv/lib/python2.6/site-packages'))
 from paste.script.util.logging_config import fileConfig
 sys.path.append(BASEDIR)
 os.environ['PYTHON_EGG_CACHE'] = '/var/tmp'
 fileConfig( INIFILE )
 from paste.deploy import loadapp
 application = loadapp('config:%s' % INIFILE)



Installation using daemontools on Lenny
=========================================

 apt-get install python-virtualenv
 virtualenv .
 . bin/activate
 apt-get install python-dev
 easy_install debshots...
 paster make-config debshots my.ini
 apt-get install memcached python-memcache
 aptitude install daemontools daemontools-run
 mkdir /etc/service/debshots
 Create a file /etc/service/debshots/run...
 chmod +x /etc/service/debshots
 svc -u /etc/service/debshots
 (logging?)
 
Something went wrong with that request. Please try again.