Installation - mharlos/ComicBookServer GitHub Wiki
Make sure you open cbv.py and change the baseDir and comicDir so if you were So :
baseDir = "/var/ComicBookServer/"
comicDir = "/var/ComicBookServer/Comics/"
NOTE make sure that your comics are in folders in comicDir (I.E /var/ComicBookServer/Comics/DC/some_comic.cbr) If you try and put comics directly in the root it may not work.
Edit the file process.sh and update the paths to point to the full path of ComicBookServer/static/sessions/
So:
/var/ComicBookServer/static/sessions/$1
NOTE make sure you leave the $1 on the end.
Ensure you have installed:
- python:
sudo apt-get install python - pip:
easy_install pip -
flask:
sudo pip install flask - unzip:
sudo apt-get install unzip - unrar:
sudo apt-get install unrar
AS OF VERSION 0.8b (for session authentication ) :
- redis lib:
sudo pip install redis - beaker:
sudo pip install beaker - beaker extensions:
sudo pip install git+git://github.com/bbangert/beaker_extensions.git - redis-server
sudo apt-get install redis-server
Then cd into your basedir and execute : python cbv.py to run the flask app directly
AS OF VERSION 0.8b:
Start the redis-server on the host - `sudo service redis-server start'
Edit this block in cbv.py:
session_opts = { 'session.key': 'ComicBookServer', 'session.type': 'redis', 'session.url': '127.0.0.1:13001', 'session.data_dir': './static/sessions/', }
NOTE: I'm running on a non standard redis port. The default is 6379. so 'session.url': '127.0.0.1:6379'
You can disable the Session Auth by changing useSessionAuth to "False" in cbv.py, however you will still need the redis and beaker dependencies.
The tornado launcher ComicBookServer.py is broken. Make sure you use the cbv.py script to start the server.
NOTE: You may want to execute it in a screen session or something. It is not daemonized.
Assuming no error, you should be able to go to http://<your-ip>:8086/ and start using the app.
#####There is no janitor for the sessions folder. You may want to go into ComicBookServer/static/sessions/ and remove all of the directories ( should be numbers starting at zero ) every couple of days. Or do like I did and set up a cron to run at midnight.
Feel free to contact me if you have questions.