#!/usr/bin/env python

import sys
import os
from app.main import app

if __name__ == '__main__':
    if len(sys.argv) > 1 and sys.argv[1] == 'debug':
        app.debug = True
    port = int(os.environ.get('PORT', 5000))
    app.run(host='0.0.0.0', port=port, threaded=True)

Add separate script for starting app
Add separate script for starting app
