aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-29 00:07:01 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-29 00:07:01 +0100
commit216156880237251ddd10df9a2b82c68de7696d25 (patch)
tree8d7b8808ef915f2a9ce9b4c1a14f5a63f6b7feb9
parentdocker now exposes port number 5532 for postgres (diff)
downloadnewspipe-216156880237251ddd10df9a2b82c68de7696d25.tar.gz
newspipe-216156880237251ddd10df9a2b82c68de7696d25.tar.bz2
newspipe-216156880237251ddd10df9a2b82c68de7696d25.zip
DEBUG set to False by default.
-rw-r--r--docker-compose.yml5
-rw-r--r--instance/config.py (renamed from instance/production.py)2
-rwxr-xr-xwait-for-postgres.sh2
3 files changed, 3 insertions, 6 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 3634afc2..fd3bd0e0 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -21,11 +21,8 @@ services:
context: .
dockerfile: ./Dockerfile
tty: true
- volumes:
- - .:/newspipe:rw
- - /newspipe/static/npm_components/
environment:
- - Newspipe_CONFIG=/newspipe/instance/production.py
+ - Newspipe_CONFIG=/newspipe/instance/config.py
ports:
- "5000:5000"
expose:
diff --git a/instance/production.py b/instance/config.py
index 90f27c1c..8a3fdb6b 100644
--- a/instance/production.py
+++ b/instance/config.py
@@ -7,7 +7,7 @@ import os
# Webserver
HOST = "0.0.0.0"
PORT = 5000
-DEBUG = False
+DEBUG = True
API_ROOT = "/api/v2.0"
CSRF_ENABLED = True
diff --git a/wait-for-postgres.sh b/wait-for-postgres.sh
index e6bbd619..3f4e7067 100755
--- a/wait-for-postgres.sh
+++ b/wait-for-postgres.sh
@@ -13,7 +13,7 @@ do
done
>&2 echo "Postgres is up - executing command"
-export Newspipe_CONFIG=/newspipe/instance/production.py
+export Newspipe_CONFIG=/newspipe/instance/config.py
poetry run ./manager.py db_create >/dev/null
poetry run pybabel compile -d newspipe/translations
poetry run ./runserver.py
bgstack15