Installation de ODOO 8.0

Installation de ODOO 8.0
La procédure se fait uniquement en local, sur votre ordinateur de développement.
1) Pré-requis :
Instance Simple Hosting : Python / PostgreSql
Taille : S
2) Répertoire de travail :

[~] ➔ mkdir ODOO
[~] ➔ cd ODOO/

3) Téléchargement du code source :
Build : odoo_8.0.20160330.tar.gz

[~/ODOO] ➔ wget https://nightly.odoo.com/8.0/nightly/src/odoo_8.0.latest.tar.gz

4) Décompression de l’archive :

[~/ODOO] ➔ gzip -d odoo_8.0.latest.tar.gz
[~/ODOO] ➔ tar xvf odoo_8.0.latest.tar --strip-components=1
[~/ODOO] ➔ rm odoo_8.0.latest.tar

5) Configuration :
Ouvrir :

wsgi.py

Ajouter :

import os
import openerp
os.environ['HOME'] = '/srv/data/web/vhosts/default'
#----------------------------------------------------------
# Common
#----------------------------------------------------------
openerp.multi_process = True # Nah!
# Equivalent of --load command-line option
openerp.conf.server_wide_modules = ['web']
conf = openerp.tools.config
conf['data_dir'] = '/srv/data/web/vhosts/default'
conf['logfile'] = '/srv/data/web/vhosts/default/log/server.log'
conf['log_level'] = 'error'
# Path to the OpenERP Addons repository (comma-separated for
# multiple locations)
conf['addons_path'] = '/srv/data/web/vhosts/default/addons'
# Optional database config if not using local socket
#conf['db_name'] = 'mycompany'
conf['db_host'] = 'localhost'
conf['db_user'] = 'hosting-db'
conf['db_port'] = 5432
conf['db_password'] = 'hosting-pass'
#----------------------------------------------------------
# Generic WSGI handlers application
#----------------------------------------------------------
application = openerp.service.wsgi_server.application
openerp.service.server.load_server_wide_modules()

Chercher :

conf['db_password'] = 'hosting-pass'

Remplace par :

conf['db_password'] = 'mot2passe'

6) Initialisation git :
– Initialisation du dépôt :

[~/ODOO] ➔ git init .

– Ajout tous les fichiers :

[~/ODOO] ➔ git add .

– Committer :

[~/ODOO] ➔ git commit -am "Version 0.0.1"

– Ajout de la branche du dépôt distant ;

[~/ODOO] ➔ git remote add origin git+ssh://@git.dc.gpaas.net/default.git

– Pousser les fichiers dans le dépôt distant :

[~/ODOO] ➔ git push origin master

– Déploiement du code :

[~/ODOO] ➔ ssh @git.dc.gpaas.net 'deploy default.git'

7/ Activer la console via la page d’information de l’instance
8/ Configuration de la base de donnée :

[~/ODOO] ➔ ssh @console.dc.gpaas.net
(python)hosting-user@Hebergement01:/srv/data$ psql
psql (9.2.13)
postgres=# update pg_database set datallowconn = TRUE where datname = 'template0';
UPDATE 1
postgres=# \c template0
You are now connected to database "template0" as user "hosting-db".
template0=# update pg_database set datistemplate = FALSE where datname = 'template1';
UPDATE 1
template0=# drop database template1;
DROP DATABASE
template0=# create database template1 with template = template0 encoding = 'UTF8';
CREATE DATABASE
template0=# update pg_database set datistemplate = TRUE where datname = 'template1';
UPDATE 1
template0=# \c template1
You are now connected to database "template1" as user "hosting-db".
template1=# update pg_database set datallowconn = FALSE where datname = 'template0';
UPDATE 1
template1=#

9) Configuration de l’application :
– Adresse internet :
http://c4abbb99e7.url-de-test.ws/
– Configuration
Master password : admin
Select a databasename : odoo
Load demonstration date : v
Default language : French / Français
Choose a password : mot2passe

[Create Database]
– Modules locaux
Installer tous les modules
10) Connexion à Odoo :
Courriel : admin
Mot de passe : mot2passe
11) Liens :
https://wiki.gandi.net/fr/simple/instance/python
https://www.odoo.com/fr_FR/

Comments are closed, but trackbacks and pingbacks are open.