GithubHelp home page GithubHelp logo

yourant / odoo_14 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kit9/odoo_14

0.0 0.0 0.0 413.8 MB

License: Other

Shell 0.05% JavaScript 39.51% Ruby 0.01% C++ 0.01% Python 43.64% C 0.01% Java 0.01% Scala 0.01% Groovy 0.01% Fortran 0.01% Go 0.01% CoffeeScript 0.01% C# 0.01% XSLT 0.01% CSS 0.96% COBOL 0.01% AspectJ 0.01% Makefile 0.02% HTML 15.77% NSIS 0.02%

odoo_14's Introduction

How to install beanbakery ERP : https://www.odoo.com/documentation/14.0/administration/install/install.html#id7

  1. Install Python 3.7 and nodejs

  2. Install PostgresSQL

    • dnf install postgresql postgresql-server postgresql-contrib -y
    • postgresql-setup initdb
    • systemctl start postgresql
    • systemctl enable postgresql
    • Create Possgres user: su - postgres -c "createuser -s beanbakery"
  3. Clone source code and we need to create a new system user for our Odoo installation. Make sure the username is the same as the PostgreSQL user we created in the previous step:

  4. Install python dev by Virtual Env and setup Bean Bakery ERP

    • install env lib: pip install virtualenv
    • cd /opt/beanbakery && python3 -m venv beanbakery-venv
    • source beanbakery-venv/bin/activate
    • pip3 install wheel
    • pip3 install -r ./requirements.txt
    • deactivate && exit
  5. Running Bean Bakery ERP

    • sudo chmod 777 /opt/odoo14/.local/odoo/filestore
    • $ cd /CommunityPath
    • $ odoo_setup.sh
    • sudo systemctl daemon-reload
    • sudo systemctl start beanbakery
    • sudo systemctl enable odoo14
    • sudo systemctl status odoo14
  6. Install nginx

    • dnf install nginx -y
    • sudo nano /etc/nginx/conf.d/yourdomain.com.conf
    • add following code '''' #odoo server upstream odoobean { server 127.0.0.1:8071; } upstream odoobeanchat { server 127.0.0.1:8073; }

http -> https

server { listen 80; #server_name beanbakery.vn www.beanbakery.vn nhadaubakery.com; #rewrite ^(.*) https://beanbakery.vn permanent; server_name .beanbakery.vn beanbakery.vn; rewrite ^(.) https://$host$1 permanent; }

server { listen 443 ssl; server_name erp.beanbakery.vn beanbakery.vn;

proxy_read_timeout 720s;
proxy_connect_timeout 720s;
proxy_send_timeout 720s;

Add Headers for odoo proxy mode

proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;

SSL parameters

ssl on;

ssl_certificate /etc/ssl/beanbakery_origin_cert.pem; ssl_certificate_key /etc/ssl/beanbakery.key; ssl_session_timeout 30m; ssl_protocols TLSv1.2; ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES$ ssl_prefer_server_ciphers off;

log

access_log /var/log/nginx/odoo.access.log; error_log /var/log/nginx/odoo.error.log;

#Others config

client_max_body_size 100M;

Redirect longpoll requests to odoo longpolling port

location /longpolling { proxy_pass http://odoobeanchat; }

Redirect requests to odoo backend server

location / {
   proxy_redirect off;
   proxy_pass http://odoobean;
}


# Cache static files
location ~* /web/static/ {
    proxy_cache_valid 200 90m;
    proxy_buffering on;
    expires 864000;
    proxy_pass http://odoobean;
}

# common gzip
gzip_types text/css text/scss text/plain text/xml application/xml application/json application/javascript;
gzip on;

} ''''

  1. Fix some error for odoo command cli
    • When running "scaffold" command
      • Check addons path at: "/Users/[username]/.odoorc", and make sure it match the current Odoo folder.

odoo_14's People

Contributors

anhjean avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.