Difference between revisions of "Odoo"
From Free Knowledge Free Technology Wiki
(Odoo install) |
m |
||
Line 1: | Line 1: | ||
==debian jessie odoo10 install== | ==debian jessie odoo10 install== | ||
+ | |||
+ | https://atularvind.com/install-odoo-10-in-ubuntu/ | ||
===Add system user=== | ===Add system user=== |
Revision as of 16:03, 10 July 2017
Contents
debian jessie odoo10 install
https://atularvind.com/install-odoo-10-in-ubuntu/
Add system user
adduser --system --quiet --shell=/bin/bash --home=/opt/odoo --group odoo adduser odoo sudo
Install Postgres
apt-get install postgresql psql --version apt-get install postgresql-server-dev-9.4 createuser --createdb --username postgres --superuser --pwprompt odoo
Install some pacjages
apt-get install wget git python-pip python-dev gdebi-core python-gevent libevent-dev gcc apt-get install libxml2-dev libxslt1-dev libldap2-dev apt-get install libssl-dev libsasl2-dev apt-get install libjpeg62-turbo-dev
Install Node.js
Download source https://nodejs.org/en/download/
./configure make make install npm install -g less npm install -g clean-css npm install -g less-plugin-clean-css
Install Odoo
cd /tmp && wget https://raw.githubusercontent.com/odoo/odoo/10.0/requirements.txt && pip install -r requirements.txt git clone --depth 1 --branch 10.0 https://www.github.com/odoo/odoo /opt/odoo/ chown -R odoo:odoo /opt/odoo/ mkdir /etc/odoo cp /opt/odoo/debian/odoo.conf /etc/odoo/odoo-server.conf vim /etc/odoo/odoo-server.conf chown odoo: /etc/odoo/odoo-server.conf chmod 640 /etc/odoo/odoo-server.conf cp /opt/odoo/debian/init /etc/init.d/odoo-server vim /etc/init.d/odoo-server (change daemon path) chmod 755 /etc/init.d/odoo-server chown root: /etc/init.d/odoo-server mkdir /var/log/odoo && touch /var/log/odoo/odoo-server.log chown -R odoo:root /var/log/odoo
vim /etc/systemd/system/odoo.service
[Unit] Description=Odoo Application Server After=network.service [Install] Alias=odoo-server.service [Service] Type=simple PermissionsStartOnly=true User=odoo Group=odoo #SyslogIdentifier=odoo-server PIDFile=/run/odoo/odoo-server.pid ExecStartPre=/usr/bin/install -d -m755 -o odoo -g odoo /run/odoo ExecStart=/opt/odoo/odoo-bin ExecStop=/bin/kill $MAINPID [Install] WantedBy=multi-user.target
Config nginx
https://www.rosehosting.com/blog/install-odoo-on-a-debian-8-vps-with-nginx-as-a-reverse-proxy/