gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-bank] branch master updated: Serving static files vi


From: gnunet
Subject: [GNUnet-SVN] [taler-bank] branch master updated: Serving static files via uWSGI.
Date: Mon, 01 Apr 2019 21:46:20 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository bank.

The following commit(s) were added to refs/heads/master by this push:
     new b08ec92  Serving static files via uWSGI.
b08ec92 is described below

commit b08ec926b2158cdff87b79d5f48f3c8d2b13bda3
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Apr 1 21:46:01 2019 +0200

    Serving static files via uWSGI.
---
 taler-bank-manage.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/taler-bank-manage.in b/taler-bank-manage.in
index 82f4156..5fa10cf 100644
--- a/taler-bank-manage.in
+++ b/taler-bank-manage.in
@@ -68,6 +68,7 @@ def handle_serve_http(args):
     call_command('migrate')
     call_command('provide_accounts')
     call_command('check')
+    call_command('collectstatic', '--noinput')
     port = args.port
     TC = TalerConfig.from_file(os.environ.get("TALER_CONFIG_FILE", 
args.config))
     if port is None:
@@ -75,6 +76,7 @@ def handle_serve_http(args):
 
     httpspec = ":%d" % (port,)
     params = ["uwsgi", "uwsgi",
+              "--static-map", "/static=/tmp/talerbankstatic",
               "--master",
               "--die-on-term",
               "--http", httpspec,
@@ -94,10 +96,12 @@ def handle_serve_uwsgi(args):
     call_command('migrate')
     call_command('provide_accounts')
     call_command('check')
+    call_command('collectstatic', '--noinput')
     TC = TalerConfig.from_file(os.environ.get("TALER_CONFIG_FILE", 
args.config))
     serve_uwsgi = TC["bank"]["uwsgi_serve"].value_string(required=True).lower()
     params = ["uwsgi", "uwsgi",
               "--master",
+              "--static-map", "/static=/tmp/talerbankstatic",
               "--die-on-term",
               "--log-format", UWSGI_LOGFMT,
               "--wsgi-file", "@prefix@/share/taler-bank/bank.wsgi"]

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]