File tree Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -o errexit
4
4
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
9
7
10
8
echo " Initializing database"
11
9
python manage.py wait_for_db
Original file line number Diff line number Diff line change @@ -3,16 +3,16 @@ services:
3
3
4
4
backend :
5
5
build : ./app
6
- command : ["/app/tools/run.sh", "0.0.0.0:8000" ]
6
+ command : ["/app/tools/run.sh"]
7
7
volumes :
8
- - ./app/:/app/
9
8
- static_volume:/app/staticfiles
10
9
environment :
11
10
ADMIN_USERNAME : " admin"
12
11
ADMIN_PASSWORD : " password"
13
12
14
13
DATABASE_URL : " postgres://doccano:doccano@postgres:5432/doccano?sslmode=disable"
15
- ALLOW_SIGNUP : " False"
14
+ ALLOW_SIGNUP : " False"
15
+ DEBUG : " False"
16
16
depends_on :
17
17
- postgres
18
18
networks :
Original file line number Diff line number Diff line change @@ -3,9 +3,6 @@ FROM node:13.1.0
3
3
# set work directory
4
4
WORKDIR /app
5
5
6
- # set environment variables
7
- # ENV PYTHONDONTWRITEBYTECODE 1
8
-
9
6
# copy project
10
7
COPY . /app/
11
8
You can’t perform that action at this time.
0 commit comments