acoustid-server icon indicating copy to clipboard operation
acoustid-server copied to clipboard

Documentation not uptodate - How start server?

Open NemoN opened this issue 12 years ago • 1 comments

i installed the latest acoustid-server version from git. And followed the "install" README.

With some problems i got the Database setup completed (PostgreSQL has no /contrib/pgcrypto.sql file)

But now i'm lost. How i can start the server?

/opt/acoustid-server/scripts# ./run_http.py Traceback (most recent call last): File "./run_http.py", line 6, in from acoustid.server import make_application ImportError: No module named acoustid.server

it seems i must install the acoustid part in my python lib?

NemoN avatar Aug 24 '12 15:08 NemoN

Yes, you need to set the Python path. For development, I use something like this:

cd /path/to/acoustid-server
PYTHONPATH=. ./run_http.py 

For production, however, you don't want to use that script. You should use uWSGI or mod_wsgi to serve the application.

lalinsky avatar Aug 27 '12 08:08 lalinsky