Skip to content

Commit 44f1648

Browse files
committed
Set DEBUG=False for production environment
1 parent e03b9de commit 44f1648

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

app/tools/run.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22

33
set -o errexit
44

5-
if [[ ! -d "staticfiles" ]]; then
6-
echo "Making staticfiles"
7-
python manage.py collectstatic --noinput;
8-
fi
5+
echo "Making staticfiles"
6+
python manage.py collectstatic --noinput
97

108
echo "Initializing database"
119
python manage.py wait_for_db

docker-compose.prod.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ services:
33

44
backend:
55
build: ./app
6-
command: ["/app/tools/run.sh", "0.0.0.0:8000"]
6+
command: ["/app/tools/run.sh"]
77
volumes:
8-
- ./app/:/app/
98
- static_volume:/app/staticfiles
109
environment:
1110
ADMIN_USERNAME: "admin"
1211
ADMIN_PASSWORD: "password"
1312
ADMIN_EMAIL: "[email protected]"
1413
DATABASE_URL: "postgres://doccano:doccano@postgres:5432/doccano?sslmode=disable"
15-
ALLOW_SIGNUP: "False"
14+
ALLOW_SIGNUP: "False"
15+
DEBUG: "False"
1616
depends_on:
1717
- postgres
1818
networks:

frontend/Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ FROM node:13.1.0
33
# set work directory
44
WORKDIR /app
55

6-
# set environment variables
7-
# ENV PYTHONDONTWRITEBYTECODE 1
8-
96
# copy project
107
COPY . /app/
118

0 commit comments

Comments
 (0)