gfw-api/arcgis-proxy

View on GitHub
main.py

Summary

Maintainability
A
0 mins
Test Coverage
"""Main Script"""

import os
from arcgis_proxy.app import app


# This is only used when running locally. When running live, Gunicorn runs
# the application.
if __name__ == '__main__':
    app.run(
        host='0.0.0.0',
        port=int(os.getenv('PORT')),
        debug=os.getenv('DEBUG') == 'True',
        threaded=True
    )