On Wed, 13 Oct 2010, Peter Palfrader wrote: > Can you file a bug against the snapshot.debian.org package, maybe with a > subject tag of '[squeeze]' or something? That'll allow me to keep track > of these things more easily. done > > application = loadapp('config:/srv/snapshot-neuro.debian.net/etc/web-app.ini') > > although upon 'reload' everything usually comes back to normal > I wonder what that is about. How do you start it all, and what does the > file look like? well - the web-app.ini, that one was generated with PYTHONPATH=$HOME/web-app/lib/python2.6/site-packages/ paster make-config snapshot ~/etc/web-app.ini.NEW and then tuned up and renamed accordingly... I attached it with "sensitive" data replaced with XXX. I "started" it following original sample of apache.conf tuned up for my liking (see attached as well). -- .-. =------------------------------ /v\ ----------------------------= Keep in touch // \\ (yoh@|www.)onerussian.com Yaroslav Halchenko /( )\ ICQ#: 60653192 Linux User ^^-^^ [175555]
# vim: set ts=2 sw=2 et si sm: WSGIDaemonProcess snapshot-neuro.debian.net user=nobody group=nogroup home=/ processes=4 threads=10 maximum-requests=5000 inactivity-timeout=1800 umask=0077 display-name=wsgi-snapshot-neuro.debian.net <VirtualHost *:8080> ServerName snapshot-neuro.debian.net #ServerAlias snapshot-dev.debian.org snapshot-master.debian.org snapshot-*.debian.org ServerAdmin team@neuro.debian.net ErrorLog /var/log/apache2/snapshot-neuro.debian.net-error.log CustomLog /var/log/apache2/snapshot-neuro.debian.net-access.log combined Alias /static /srv/snapshot-neuro.debian.net/web/public/static Alias /git /srv/snapshot-neuro.debian.net/snapshot.git Alias /robots.txt /srv/snapshot-neuro.debian.net/web/public/robots.txt #RewriteEngine on #RewriteRule ^/archive/backports.org/(.*) /archive/debian-backports/$1 [L,R] <Directory /srv/snapshot-neuro.debian.net/htdocs> Order allow,deny Allow from all </Directory> WSGIScriptAlias / /srv/snapshot-neuro.debian.net/bin/snapshot.wsgi WSGIProcessGroup snapshot-neuro.debian.net #WSGIPassAuthorization On </VirtualHost>
# # Snapshot - Pylons configuration # # The %(here)s variable will be replaced with the parent directory of this file # [DEFAULT] debug = false email_to = XXX smtp_server = localhost error_email_from = XXX [server:main] use = egg:Paste#http host = 0.0.0.0 port = 5000 [app:main] use = egg:Snapshot full_stack = true static_files = true cache_dir = %(here)s/web-cache beaker.session.key = snapshot beaker.session.secret = XXX app_instance_uuid = XXX snapshot.db.host = localhost snapshot.db.port = 5432 snapshot.db.database = snapshotdb snapshot.db.user = guest snapshot.db.password = XXX snapshot.farmpath = /srv/snapshot-neuro.debian.net/farm expires.static = 900 expires.root = 900 expires.archive.dir = 600 expires.archive.file = 864000 expires.package.root_cat = 600 expires.package.source = 600 expires.package.source_version = 600 expires.package.mr.list = 3600 expires.package.mr.source = 600 expires.package.mr.source_version = 600 # If you'd like to fine-tune the individual locations of the cache data dirs # for the Cache data, or the Session saves, un-comment the desired settings # here: #beaker.cache.data_dir = %(here)s/data/cache #beaker.session.data_dir = %(here)s/data/sessions # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* # Debug mode will enable the interactive debugging tool, allowing ANYONE to # execute malicious code after an exception is raised. set debug = false # Logging configuration [loggers] keys = root [handlers] keys = console [formatters] keys = generic [logger_root] level = INFO handlers = console [handler_console] class = StreamHandler args = (sys.stderr,) level = NOTSET formatter = generic [formatter_generic] format = %(asctime)s %(levelname)-5.5s [%(name)s] %(message)s
Attachment:
signature.asc
Description: Digital signature