Skip to content

Commit 72c35d5

Browse files
author
Dorothy Chen
committedAug 1, 2016
use gunicorn to handle broken pipes and things
1 parent 8f40bf4 commit 72c35d5

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ There is optional IACA integration; to use it, you must first download IACA from
99

1010
To run:
1111
```python
12-
python app.py
12+
gunicorn app:app
1313
```
1414

1515
### Known Bugs

‎app.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ def get_data_as_cstring():
260260
return executable.ex.get_data_as_cstring(file_offset)
261261

262262
# debug=True auto reloads whenever server code changes
263-
app.run(debug=True)
263+
if __name__ == '__main__':
264+
app.run(debug=True)
264265

265266

266267

‎requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Demangler==0.1
66
enum34==1.1.6
77
Flask==0.11.1
88
Flask-Assets==0.11
9+
gunicorn==19.6.0
910
hurry.filesize==0.9
1011
itsdangerous==0.24
1112
Jinja2==2.8

0 commit comments

Comments
 (0)
Please sign in to comment.