Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Pylons-based web application running screenshots.debian.net
Python CSS
branch: master

Removed misleading origin and distribution information

debshots cannot really assign the distribution like
Debian or Ubuntu properly. So due to popular request
that information is removed from the package packages.
latest commit 721b0b505b
Christoph Haas authored
Failed to load latest commit information.
.settings Eclipse management files added
bin
debshots.egg-info Patch from Paul Wise added (upload form shows package name)
debshots Removed misleading origin and distribution information
docs
.gitignore Redirection and moderation approval bugs fixed
.project Eclipse management files added
.pydevproject Eclipse management files added
COPYRIGHT Extend copyright to 2009
MANIFEST Version 0.4.8 - legacy scripts removed
MANIFEST.in Pylons 0.9.6 -> 0.9.7
README.txt Brief notes on installation using mod_wsgi
development.ini Setting sane INI file defaults
ez_setup.py
setup.cfg Added tests for /json/package view
setup.py Removed misleading origin and distribution information
test.ini I hereby pronounce the current version 1.0 :)
unpickletest.py Added missing files

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.