File tree Expand file tree Collapse file tree 7 files changed +12
-9
lines changed
Expand file tree Collapse file tree 7 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -10,3 +10,5 @@ MYSQL_USER=annot8
1010MYSQL_PASSWORD = CHANGE_ME
1111MYSQL_ROOT_PASSWORD = CHANGE_ME
1212MYSQL_HOST = CHANGE_ME
13+
14+ REDIS_HOST = redis
Original file line number Diff line number Diff line change 3636]
3737
3838FRONTEND_PORT = os .environ .get ("FRONTEND_PORT" , 8080 )
39+ print (f"Used frontend port: { FRONTEND_PORT } " )
3940
4041CORS_ORIGIN_WHITELIST = (
4142 f'http://localhost:{ FRONTEND_PORT } ' ,
4748CSRF_TRUSTED_ORIGINS = (
4849 'https://api.inf-cv.uni-jena.de' ,
4950 'https://annot8.dikorsch.de' ,
51+ 'http://localhost:8082' ,
5052)
5153
5254CORS_ALLOW_HEADERS = list (default_headers ) + [
Original file line number Diff line number Diff line change 11BACKEND_URL = " https://annot8.dikorsch.de"
2- BACKEND_URL = " http://127.0.0.1"
3- BACKEND_PORT = 8000
2+ BACKEND_PORT = 443
43VUE_APP_API_URL = " ${ BACKEND_URL } :${ BACKEND_PORT } /annot8/api/v1"
54VUE_APP_MEDIA_URL = " ${ BACKEND_URL } :${ BACKEND_PORT } "
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ WORKDIR /code
2121# install dependencies
2222COPY ./backend/requirements.txt /code/
2323RUN python -m pip install --upgrade pip
24- RUN pip install numpy uwsgi
24+ RUN pip install numpy~=1.23.5 uwsgi
2525RUN pip install -r /code/requirements.txt
2626RUN rm /code/requirements.txt
2727
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ ARG GID=root
66# build webui #
77# #######################################
88
9- FROM node:20 as builder
9+ FROM node:20 AS builder
1010
1111# copy files
1212COPY ./frontend /code
@@ -25,7 +25,7 @@ RUN npm run build
2525# actuall webserver #
2626# #######################################
2727
28- FROM nginx as annot8_frontend
28+ FROM nginx AS annot8_frontend
2929
3030COPY --from=builder /code/dist /usr/share/nginx/html
3131USER ${UID}:${GID}
Original file line number Diff line number Diff line change 33source ${CONDA_PREFIX:-/ data/ dima/ .miniconda3} /etc/profile.d/conda.sh
44conda activate annot8
55python manage.py $@
6-
Original file line number Diff line number Diff line change 1+ setenv FRONTEND_PORT 8082
2+ setenv BACKEND_PORT 8001
13
24chdir backend
3- screen -t backend ../scripts/screen/backend.sh runserver 0.0.0.0:8000
5+ screen -t backend ../scripts/screen/backend.sh runserver 0.0.0.0:${BACKEND_PORT}
46screen -t qcluster ../scripts/screen/backend.sh qcluster
57
68chdir ../frontend
7- screen -t frondend npm run serve
9+ screen -t frondend npm run serve -- --port ${FRONTEND_PORT}
810screen -t redis redis-server
911
1012chdir ..
1113
1214# Statuszeile
1315caption always "%{= wk} %-w%{= KW} [%n %t] %{-}%+w %= | @%H | %l | %Y-%m-%d %c "
14-
You can’t perform that action at this time.
0 commit comments