diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-01-05 15:17:05 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-01-05 15:17:05 +0100 |
commit | c6e2ca80a10fd87cb92e24d39dbf76acca6542c3 (patch) | |
tree | a2858248ba575e1df4990839fa56618f714cb06c /taler-merchant-backoffice.in | |
parent | 369d47974bc75df5df74c8253286e27308d04f53 (diff) | |
download | backoffice-c6e2ca80a10fd87cb92e24d39dbf76acca6542c3.tar.gz backoffice-c6e2ca80a10fd87cb92e24d39dbf76acca6542c3.tar.bz2 backoffice-c6e2ca80a10fd87cb92e24d39dbf76acca6542c3.zip |
up to the point where the site fetches all the
values from the config file.
Diffstat (limited to 'taler-merchant-backoffice.in')
-rw-r--r-- | taler-merchant-backoffice.in | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/taler-merchant-backoffice.in b/taler-merchant-backoffice.in index a554e85..59108e6 100644 --- a/taler-merchant-backoffice.in +++ b/taler-merchant-backoffice.in @@ -28,14 +28,16 @@ def handle_serve_http(args): port = args.port if port is None: port = TC["backoffice-%s" % args.frontend]["http_port"].value_int(required=True) - spec = ":%d" % (port,) + spec = ":%d" % (port) os.execlp("uwsgi", "uwsgi", "--master", "--die-on-term", "--log-format", UWSGI_LOGFMT, "--http", spec, - "--wsgi-file", "@prefix@/share/taler/backoffice.wsgi") - + "--wsgi-file", "@prefix@/share/taler/backoffice.wsgi", + "--env", "BACKOFFICE_BACKEND=%s" % TC["backoffice-%s" % args.frontend]["backend"].value_string(required=True), + "--env", "BACKOFFICE_INSTANCES=%s" % TC["backoffice-%s" % args.frontend]["instances"].value_string(required=True)) + def handle_serve_uwsgi(args): del args # pacify PEP checkers serve_uwsgi = TC["backoffice-%s" % args.frontend]["uwsgi_serve"].value_string(required=True).lower() @@ -43,7 +45,9 @@ def handle_serve_uwsgi(args): "--master", "--die-on-term", "--log-format", UWSGI_LOGFMT, - "--wsgi-file", "@prefix@/share/taler/backoffice.wsgi"] + "--wsgi-file", "@prefix@/share/taler/backoffice.wsgi", + "--env", "BACKOFFICE_BACKEND=%s" % TC["backoffice-%s" % args.frontend]["backend"].value_string(required=True), + "--env", "BACKOFFICE_INSTANCES=%s" % TC["backoffice-%s" % args.frontend]["instances"].value_string(required=True)] if serve_uwsgi == "tcp": port = TC["backoffice-%s" % args.frontend]["uwsgi_port"].value_int(required=True) spec = ":%d" % (port,) |