nginx compatibility added to serve static files on server; whitenoise installed to catch static file serving in local docker container, also added to core.settings middleware; console logs & print statements removed from dashboard.js & functional_tests.container_commands; ansible playbook and nginx config file support nginx w.in deployment workflow
This commit is contained in:
@@ -20,7 +20,7 @@ def _exec_in_container(host, commands):
|
||||
return _exec_in_container_on_server(host, commands)
|
||||
|
||||
def _exec_in_container_locally(commands):
|
||||
print(f"Running {commands} on inside local docker container")
|
||||
# print(f"Running {commands} on inside local docker container")
|
||||
return _run_commands(["docker", "exec", _get_container_id()] + commands)
|
||||
|
||||
def _exec_in_container_on_server(host, commands):
|
||||
@@ -52,5 +52,5 @@ def _run_commands(commands):
|
||||
result = process.stdout.decode()
|
||||
if process.returncode != 0:
|
||||
raise Exception(result)
|
||||
print(f"Result: {result!r}")
|
||||
# print(f"Result: {result!r}")
|
||||
return result.strip()
|
||||
|
||||
Reference in New Issue
Block a user