Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADD] uwsgi files #16

Open
wants to merge 1 commit into
base: 12.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:8080 --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