diff --git a/README.rst b/README.rst index 055d40d..7a10a3a 100644 --- a/README.rst +++ b/README.rst @@ -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 ============= @@ -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 ======= diff --git a/install.sh b/install.sh index 93b6486..f90d11b 100755 --- a/install.sh +++ b/install.sh @@ -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 diff --git a/odoo_eshop.wsgi b/odoo_eshop.wsgi deleted file mode 100644 index f5e208a..0000000 --- a/odoo_eshop.wsgi +++ /dev/null @@ -1 +0,0 @@ -from odoo_eshop.eshop_app.application import app as application # noqa: F401 diff --git a/requirements.txt b/requirements.txt index 59058e6..9293ac8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,4 @@ Flask-Babel Flask-Caching phonenumbers redis +uwsgi diff --git a/uwsgi.py b/uwsgi.py new file mode 100644 index 0000000..22dbc4b --- /dev/null +++ b/uwsgi.py @@ -0,0 +1 @@ +from odoo_eshop.eshop_app.application import app # noqa: F401