Created
June 4, 2017 04:23
-
-
Save FingerLiu/2fae6136fb7d2aac5c677d303508a516 to your computer and use it in GitHub Desktop.
odoo 踩坑
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doo | |
add code.cloudist.cc to hosts to speedup download. | |
set deploy key. | |
clone seed-ERP | |
export USER=root | |
python setup_dev setup_deps | |
sudo -i -u postgres | |
start pg service | |
Odoo创建数据库时出现的问题 DataError: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII) 解决方案: | |
执行如下指令进入PostgreSQL控制台: | |
sudo -u postgres psql postgres | |
然后在PostgreSQL控制下按顺序执行如下指令: | |
update pg_database set datallowconn = TRUE where datname = 'template0'; | |
\c template0 | |
update pg_database set datistemplate = FALSE where datname = 'template1'; | |
drop database template1; | |
create database template1 with template = template0 encoding = 'UTF8'; | |
update pg_database set datistemplate = TRUE where datname = 'template1'; | |
\c template1 | |
update pg_database set datallowconn = FALSE where datname = 'template0'; | |
apt-get install libxml2-dev libxslt-dev libevent-dev libsasl2-dev libldap2-dev libpq-dev | |
install requirements | |
apt-get install -y npm | |
ln -s /usr/bin/nodejs /usr/bin/node | |
npm install -g less |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment