EXPORT_ALLOWED_HOSTS = ['127.0.0.1']
This is very important. Publishing engine and Booktype (front end + editor) do not need to be on the same server. To allow access to books you need to define from which IP addresses they could be fetched. Just add this:
EXPORT_ALLOWED_HOSTS = ['127.0.0.1', '*']
and it will work. After that you can edit dev.py or prod.py file. If you have installed this on the server who is accessible as bk.myserver.com you should have this
THIS_BOOKTYPE_SERVER = 'bk.myserver.com'
BOOKTYPE_URL = 'http://{}'.format(THIS_BOOKTYPE_SERVER)
CONVERT_URL = BOOKTYPE_URL
This means, that it will try to connect to http://bk.myserver.com/_convert/ to access the publishing engine. One common thing where publishing will fail is if EXPORT_ALLOWED_HOSTS is not properly defined and it Tidy html external command line application is not installed.
After this you have MPDF to configure. You need to install php-cli and php-gd debian package for this. Go to www.mpdf1.com and download MPDF60. Let's say you did and you downloaded and unzipped it in /var/www/mysite/mpdf60/ directory. In that case you should have this.
MPDF_DIR = '/var/www/mysite/mpdf60/'
$ sudo supervisorctl status
celery FATAL Exited too quickly (process log may have details)
MPDF_DIR = '/var/www/mpdf60/' (even chown www-data on this one)
EXPORT_ALLOWED_HOSTS = ['127.0.0.1', '*']
Made shure I have tidy installed as per this instruction in the main tutorial:
apt-get install git-core python-dev python-pip libjpeg-dev libpq-dev libxml2-dev libxslt-dev rabbitmq-server redis-server tidy
I wish someone could help me get this installation working, so I better can spend my time finishing the norwegian translation.
It looks like you're new here. If you want to get involved, click one of these buttons!