forked from metabrainz/artwork-redirect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
50 lines (30 loc) · 1.4 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
To install this service, you will need to have the following python packages installed:
cherrypy
psycopg2
sqlalchemy
werkzeug
Depending on your os version you can install them with the system package manager, or you
may have to install them manually.
Ubuntu 11.10
============
On Ubuntu you can install these with the following command:
sudo apt-get install python-cherrypy3 python-psycopg2 python-sqlalchemy python-werkzeug
Ubuntu 10.04.4 LTS
==================
On Ubuntu LTS you will have to install a newer sqlalchemy with pip, but first install the
the other required packages:
sudo apt-get install python-virtualenv python-cherrypy3 python-werkzeug python-psycopg2
Create the virtualenv:
virtualenv ~/virtualenv
Install the requirements in the virtualenv:
~/virtualenv/bin/pip install -r requirements.txt
Running the server
==================
CherryPy is used as the WSGI server. To deploy, simply copy coverart_redirect.conf.dist
to coverart_redirect.conf, edit the settings to point to a MusicBrainz postgres install
and where to listen for connections.
Then run coverart_redirect_server.py to run the service. All logging goes to stdout,
including stacktraces, so its suitable for running inside of daemontools.
If you've installed some of the required packages with virtualenv, run the server
using python from the virtualenv directory:
~/virtualenv/bin/python coverart_redirect_server.py