Skip to content

Commit

Permalink
trying gunicorn to deploy server
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamgutgutia committed Dec 24, 2023
1 parent 09b126d commit de292bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*/__pycache__
__pycache__
.env
venv

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ RUN pip3 install -r requirements.txt

COPY . /app/
EXPOSE 5000
CMD ["python3","app.py"]
CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"]

3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ vobject==0.9.6.1
xlrd==2.0.1
flask-cors==4.0.0
openpyxl==3.1.2
odfpy==1.4.1
odfpy==1.4.1
gunicorn==21.2.0

0 comments on commit de292bd

Please sign in to comment.