Diferencias
Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anterior Revisión previa Próxima revisión | Revisión previa | ||
| odoo_install [2023/12/13 12:43] – ivan | odoo_install [2024/06/23 21:41] (actual) – admin | ||
|---|---|---|---|
| Línea 11: | Línea 11: | ||
| Inicializar base de datos | Inicializar base de datos | ||
| + | |||
| + | python3 odoo-bin -r admin -w adminpwd --addons-path=/ | ||
| + | |||
| + | python3 odoo-bin -r admin -w adminpwd --addons-path=/ | ||
| + | |||
| <code bash> | <code bash> | ||
| python3 odoo-bin -r admin -w adminpwd --addons-path=addons -d odoo15 --db_host localhost -i all | python3 odoo-bin -r admin -w adminpwd --addons-path=addons -d odoo15 --db_host localhost -i all | ||
| + | </ | ||
| OR | OR | ||
| + | <code bash> | ||
| ./odoo-bin --database=codingdodo_demo --db_user=odoo --db_password=codingdodo -i base --without-demo=all --save -c / | ./odoo-bin --database=codingdodo_demo --db_user=odoo --db_password=codingdodo -i base --without-demo=all --save -c / | ||
| </ | </ | ||
| Línea 89: | Línea 96: | ||
| </ | </ | ||
| + | despues | ||
| + | <code bash> | ||
| + | sudo nano / | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | [Unit] | ||
| + | Description=Odoo | ||
| + | Requires=postgresql.service | ||
| + | After=network.target postgresql.service | ||
| + | |||
| + | [Service] | ||
| + | Type=simple | ||
| + | SyslogIdentifier=odoo | ||
| + | PermissionsStartOnly=true | ||
| + | User=odoo | ||
| + | Group=odoo | ||
| + | ExecStart=/ | ||
| + | StandardOutput=journal+console | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | </ | ||
| + | |||
| + | NGINX | ||
| + | <code bash> | ||
| + | sudo nano / | ||
| + | </ | ||
| + | |||
| + | Poner | ||
| + | < | ||
| + | server { | ||
| + | listen 80; | ||
| + | server_name odoo.com; #reemplazar por el dominio que corresponda | ||
| + | |||
| + | location / { | ||
| + | proxy_pass http:// | ||
| + | proxy_http_version 1.1; | ||
| + | proxy_set_header Upgrade $http_upgrade; | ||
| + | proxy_set_header Connection ' | ||
| + | proxy_set_header Host $host; | ||
| + | proxy_cache_bypass $http_upgrade; | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | cd / | ||
| + | ln -s / | ||
| + | nginx -t | ||
| + | systemctl restart nginx | ||
| + | apt install certbot python3-certbot-nginx | ||
| + | certbot --nginx -d odoo.com | ||
| + | </ | ||