[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-bank] branch master updated: Avoid running 'collects
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-bank] branch master updated: Avoid running 'collectstatic' first. |
Date: |
Mon, 01 Apr 2019 22:25:48 +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 df8a61a Avoid running 'collectstatic' first.
df8a61a is described below
commit df8a61a5f995b5a1ee1d2fc9d990e0b434eb64c1
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Apr 1 22:25:28 2019 +0200
Avoid running 'collectstatic' first.
---
taler-bank-manage.in | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/taler-bank-manage.in b/taler-bank-manage.in
index 5fa10cf..869f0af 100644
--- a/taler-bank-manage.in
+++ b/taler-bank-manage.in
@@ -31,10 +31,12 @@ from talerbank.talerconfig import TalerConfig
from django.core.management import call_command
os.environ.setdefault("TALER_PREFIX", "@prefix@")
-site.addsitedir("%s/lib/python%d.%d/site-packages" % (
+SITE_PACKAGES = "%s/lib/python%d.%d/site-packages" % (
"@prefix@",
sys.version_info.major,
- sys.version_info.minor))
+ sys.version_info.minor)
+
+site.addsitedir(SITE_PACKAGES)
## Not commenting global variables, at least for now.
# @cond
@@ -68,7 +70,6 @@ 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:
@@ -76,7 +77,7 @@ def handle_serve_http(args):
httpspec = ":%d" % (port,)
params = ["uwsgi", "uwsgi",
- "--static-map", "/static=/tmp/talerbankstatic",
+ "--static-map", "/static=%s/talerbank/app/static" %
SITE_PACKAGES,
"--master",
"--die-on-term",
"--http", httpspec,
@@ -96,12 +97,11 @@ 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",
+ "--static-map", "/static=%s/talerbank/app/static" %
SITE_PACKAGES,
"--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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-bank] branch master updated: Avoid running 'collectstatic' first.,
gnunet <=