Initial commit: simpleblog
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
"""Entry point for the Simple Blog.
|
||||
|
||||
Usage:
|
||||
python run.py
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
from blog import create_app
|
||||
|
||||
app = create_app()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# Read optional PORT from the environment (default 5000)
|
||||
port = int(os.environ.get("PORT", "5000"))
|
||||
app.run(host="0.0.0.0", port=port, debug=False)
|
||||
Reference in New Issue
Block a user