Instrukcja uruchomienia.
This commit is contained in:
@@ -1,2 +1,8 @@
|
|||||||
# docker_flask
|
# docker_flask
|
||||||
|
|
||||||
|
|
||||||
|
## Run
|
||||||
|
`set FLASK_APP=index.py
|
||||||
|
set FLASK_DEBUG=1
|
||||||
|
set
|
||||||
|
flask run -p 5001`
|
||||||
3
index.py
3
index.py
@@ -380,5 +380,6 @@ def slugify(text):
|
|||||||
|
|
||||||
app.secret_key = b'\xd7:o\\\xaayFe\x1ey\x08m9\xe4\xbc!\xee\x0e>\xd1Z\x99-\xbb'
|
app.secret_key = b'\xd7:o\\\xaayFe\x1ey\x08m9\xe4\xbc!\xee\x0e>\xd1Z\x99-\xbb'
|
||||||
|
|
||||||
|
#http://flask.pocoo.org/snippets/133/ @TODO
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
app.run(host="0.0.0.0", port=5002, debug=True, threaded=True)
|
app.run(host="0.0.0.0", port=5001, debug=True, threaded=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user