Browse Source

production-ready setup

master
crunch 2 years ago
parent
commit
41396f36c1
3 changed files with 5 additions and 3 deletions
  1. +1
    -1
      Dockerfile
  2. +1
    -1
      nginx.conf
  3. +3
    -1
      requirements.txt

+ 1
- 1
Dockerfile View File

@ -8,6 +8,6 @@ RUN mkdir /root/.ssh/
ADD id_rsa /root/.ssh/id_rsa
RUN touch /root/.ssh/known_hosts
RUN ssh-keyscan -t rsa git.reinkober-it.de >> ~/.ssh/known_hosts
RUN git clone git@git.reinkober-it.de:crunch/Consulta.git
RUN git clone git@git.reinkober-it.de:crunch/Consulta.git && cd Consulta/ && git checkout b_sprint3
WORKDIR /code/Consulta/Consulta_project
EXPOSE 8000

+ 1
- 1
nginx.conf View File

@ -23,7 +23,7 @@ http {
root /static;
keepalive_timeout 5;
server_name localhost;
server_name ~^(.+)$;
# checks for static file, if not found proxy to app
location / {


+ 3
- 1
requirements.txt View File

@ -3,4 +3,6 @@ django-qr-code>=1.1,<1.2
django-guardian>=2.1.0,<2.2.0
django-grappelli>=2.13.0,<2.14.0
djangorestframework>=3.11.0,<3.12.0
gunicorn>=19.9<20.0
gunicorn>=19.9<20.0
django-cors-headers>=3.2.0,<3.3.0
django-registration>=3.0.0.,<3.1.0

Loading…
Cancel
Save