Commit 24f78511 authored by Chris Lamb's avatar Chris Lamb 💬

Drop the virtualenv-based deployment configuration.

parent f920b2ca
[Unit]
Description=bidb-celery
After=network.target
[Install]
WantedBy=multi-user.target
[Service]
User=www-data
Group=www-data
Restart=always
PermissionsStartOnly=true
ExecStartPre=-/usr/bin/install -o www-data -g www-data -d /var/lib/bidb-celery
ExecStart=/usr/share/python/bidb/bin/manage.py celery worker --beat --schedule=/var/lib/bidb-celery/schedule --loglevel=info --concurrency=1
PrivateTmp=true
[Unit]
Description=bidb-gunicorn
After=network.target
[Install]
WantedBy=multi-user.target
[Service]
User=www-data
Group=www-data
Restart=always
ExecStart=/usr/share/python/bidb/bin/gunicorn --workers=2 --max-requests=250 --log-level=info --preload bidb.wsgi
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
PrivateTmp=true
bidb (0) UNRELEASED; urgency=low
* (No changelog)
-- Chris Lamb <lamby@debian.org> Tue, 14 Feb 2012 20:04:50 +0000
Source: bidb
Section: net
Priority: optional
Maintainer: Chris Lamb <lamby@debian.org>
Build-Depends:
debhelper (>= 9),
dh-systemd (>= 1.5),
dh-virtualenv (>= 1.0),
libffi-dev,
libpq-dev,
libpython-dev,
python
Standards-Version: 3.9.6
Package: bidb
Architecture: any
Pre-Depends:
python2.7,
${misc:Pre-Depends}
Depends:
${misc:Depends},
${shlibs:Depends}
Description: bidb
#!/usr/bin/make -f
export DH_VIRTUALENV_INSTALL_ROOT = /usr/share/python
%:
dh $@ --with=python-virtualenv,systemd
override_dh_systemd_start:
dh_systemd_start --no-start
override_dh_systemd_enable:
dh_systemd_enable --name bidb-celery
dh_systemd_enable --name bidb-gunicorn
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment