Open vClouds opened 6 years ago
Hi, sorry about my silly error with sed, this should be fixed in the next snapshot with the commit 2e8aca664237012b6dfb578362b78a6e5717d9b4
As for the issue with editor_language in the traceback, which instructions for creating the database are you following please? In general I would not recommend mixing the install from git and the install from deb package as they use slightly different methods for different audiences (developer and production).
Hi, Thanks for reply,
Following the git clone as per manual always fails at migrate
stage results in many django errors as shown in the traceback above.
My observation as compared with deb install method is python requirements doesn't collect the folder named Booktype.egg-info
and its contents, not sure if this the root causes of django errors or not, as all other configurations and settings are correct.
Well, I have already working stack now by doing the above said approach as work-around
PostgreSQL Database
sudo -i -u postgres psql CREATE USER booktype password 'Zerro7SQL'; CREATE DATABASE booktype owner booktype encoding 'utf-8'; \q exit
After installation of all dependencies, deb package were installed with no instance to be created.
Using git to clone a master copy and get it merged with the unpacked deb files /var/lib/booktype
before pulling.
Activate the virtualenv and update the prod requirements before creating instance manually.
I'm not sure that, this stack can be classified as production environment or no, but that's what I can get as of now.
x sudo dpkg -i booktype.deb cd /var/lib/booktype sudo git clone https://github.com/sourcefabric/Booktype.git --branch master --depth 1 cloned files were merged back before proceeding with sudo git pull origin master reboot
source /var/lib/booktype/bin/activate /var/lib/booktype/bin/pip install --upgrade pip /var/lib/booktype/bin/pip install pyparsing appdirs /var/lib/booktype/bin/pip install --upgrade virtualenv /var/lib/booktype/bin/pip install -r /var/lib/booktype/requirements/prod.txt /var/lib/booktype/scripts/createbooktype --check-versions --profile prod --database postgresql /var/www/booktype/main /var/www/booktype/main/manage.py migrate /var/www/booktype/main/manage.py createsuperuser /var/www/booktype/main/manage.py collectstatic --noinput /var/www/booktype/main/manage.py compress /var/www/booktype/main/manage.py update_permissions /var/www/booktype/main/manage.py update_default_roles ln -s /var/www/booktype/main/conf/booktype-celery.conf /etc/supervisor/conf.d/booktype-celery-main.conf
Glad to hear you have a working instance! I'll attempt to replicate your Django issues when we package the forthcoming 2.3.0 release.
Installation of BookType v2.2.0 DEB snapshots packages always ending with the below shown error. http://apt.sourcefabric.org/snapshots/booktype_2.2.0~20171006-1_all.deb
Examining the dpkg exit error results in
Please advise. I'm trying to install from the source using virtualenv as per manual and per control scripts within the DEB package as well but ending with the below django errors
https://github.com/booktype/booktype-packaging/blob/c2385383107c392002c74984d0b5f06326af3270/debian/postinst#L163