ablanco/yith-library-web-client

View on GitHub
runapp.py

Summary

Maintainability
A
0 mins
Test Coverage
import os

from paste.deploy import loadapp
from waitress import serve

if __name__ == "__main__":
    port = int(os.environ.get("PORT", 5000))
    scheme = os.environ.get("SCHEME", "https")
    app = loadapp('config:production.ini', relative_to='.')

    serve(app, host='0.0.0.0', port=port, url_scheme=scheme)