Skip to content

Commit

Permalink
[ADD] uwsgi files
Browse files Browse the repository at this point in the history
  • Loading branch information
legalsylvain committed Aug 9, 2023
1 parent d616069 commit 726edb0
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
21 changes: 13 additions & 8 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,19 @@ Odoo Installation
This version is compatible with an Odoo 12.0 with the following module
installed ``sale_eshop`` available here : https://github.com/grap/grap-odoo-business

Once your odoo instance is running, and available on http://localhost:8069, you can
run the eshop.

Launch eshop (debug)
--------------------

``./env/bin/python -m odoo_eshop``

Launch eshop (for production)
-----------------------------

``./env/bin/uwsgi --http 127.0.0.1:8000 --master --enable-threads --processes 4 --module uwsgi:app``


Configuration
=============
Expand Down Expand Up @@ -63,14 +76,6 @@ Technical caracteristics
- Do not host database, datas are requested on the fly to the odoo instance.
- Use Jinja as a template language (http://jinja.pocoo.org/docs/2.10/)

Initial eShop Settings
----------------------


Launch eshop
------------

``./env/bin/python -m odoo_eshop``

Credits
=======
Expand Down
6 changes: 4 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
sudo apt-get install redis-server -y
# support uwsgi + pcre (https://stackoverflow.com/questions/21669354/rebuild-uwsgi-with-pcre-support)
sudo apt-get install sudo apt-get install libpcre3 libpcre3-dev -y

virtualenv env --python=python3.7
./env/bin/pip install -r ./requirements.txt
mkdir ./odoo_eshop/eshop_app/static/odoo_data/
cp ./config/config.ini.sample ./config/config.ini

sudo apt-get install redis-server -y
1 change: 0 additions & 1 deletion odoo_eshop.wsgi

This file was deleted.

1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ Flask-Babel
Flask-Caching
phonenumbers
redis
uwsgi
1 change: 1 addition & 0 deletions uwsgi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from odoo_eshop.eshop_app.application import app # noqa: F401

0 comments on commit 726edb0

Please sign in to comment.