This commit is contained in:
2020-06-22 05:41:16 +02:00
parent 32c096dda9
commit 54a9000743
3 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@@ -3,3 +3,4 @@
*.AppleDouble/
.DS_Store
__pycache__/
db.sqlite3

View File

@@ -1,4 +1,5 @@
sudo docker-compose up
sudo docker-compose run web python manage.py makemigrations
sudo docker-compose run web python manage.py migrate
#Unit Test
sudo docker-compose run web python manage.py test

View File

@@ -3,7 +3,7 @@ version: '2'
services:
web:
build: .
command: python3 manage.py runserver 0.0.0.0:8000
command: bash -c "sed -i 's/staticfiles/static/g' /usr/local/lib/python3.8/site-packages/rest_framework_swagger/templates/rest_framework_swagger/index.html && python3 manage.py runserver 0.0.0.0:8000"
volumes:
- .:/code
ports: