diff --git a/setup/connect-prod.sh b/setup/connect-prod.sh index 3bd88f67..328dbc14 100755 --- a/setup/connect-prod.sh +++ b/setup/connect-prod.sh @@ -1,3 +1,5 @@ #!/bin/bash -ssh -p 3335 odoo-test@5.9.67.35 +PORT=9002 +echo "Zugriff: http://localhost:$PORT" +ssh -p 3335 odoo-prod@5.9.67.35 -L $PORT:localhost:8070 diff --git a/setup/lib/environments.py b/setup/lib/environments.py index 00c3a009..61299200 100644 --- a/setup/lib/environments.py +++ b/setup/lib/environments.py @@ -52,4 +52,7 @@ ENVIRONMENTS = { # Do not store them here, you have to type them anyway! 'test': Environment('https://erp.tzaustria.info', '443', 'odoo-test', 'admin', config = ConfigTZA()), 'test-glaser': Environment('https://erp.tzaustria.info', '443', 'odoo-test', 'glaser-admin', config = ConfigGlaser()), + + 'prod': Environment('http://localhost', '9002', 'odoo-prod', 'admin', config = ConfigTZA()), + 'prod-glaser': Environment('http://localhost', '9002', 'odoo-prod', 'glaser-admin', config = ConfigGlaser()), } diff --git a/setup/lib/functions.py b/setup/lib/functions.py index add55c19..2f893420 100644 --- a/setup/lib/functions.py +++ b/setup/lib/functions.py @@ -2,8 +2,12 @@ from __future__ import print_function import base64 import sys +import ssl + import odoorpc +ssl._create_default_https_context = ssl._create_unverified_context + try: from urllib.parse import urlparse except ImportError: