Skip to content

Commit

Permalink
New branch for eval.fvh.io
Browse files Browse the repository at this point in the history
  • Loading branch information
aapris committed Aug 10, 2023
1 parent 4dc1835 commit b84f5b8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion django_server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ COPY Pipfile /app/
COPY Pipfile.lock /app/

# install dependencies
RUN apt-get update; apt-get install -y netcat
RUN apt-get update; apt-get install -y ncat
RUN pip install pipenv
RUN pipenv install --system --deploy

Expand Down
2 changes: 1 addition & 1 deletion django_server/application_evaluator_config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.environ.get('DEBUG', False)

ALLOWED_HOSTS = ['127.0.0.1', 'localhost', 'ai4cities.fvh.io', 'evaluator.fvh.io']
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', 'eval.fvh.io']


# Application definition
Expand Down
7 changes: 6 additions & 1 deletion docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@ version: '3.7'
services:
web:
build: ./django_server
command: gunicorn application_evaluator_config.wsgi:application --bind 0.0.0.0:8000 --access-logfile access.log --error-logfile error.log --capture-output --workers 4
command: gunicorn application_evaluator_config.wsgi:application --bind 0.0.0.0:8001 --workers 4
network_mode: host
env_file:
- ./.env.prod
volumes:
- ./django_server:/app
restart: always
logging:
driver: "json-file"
options:
max-file: "10"
max-size: "20m"

react:
build: ./react_ui
Expand Down

0 comments on commit b84f5b8

Please sign in to comment.