18 lines
315 B
Python
18 lines
315 B
Python
"""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)
|