import os

from mmmpaste import app

# Get the port from the enviroment or fall back to the default.
PORT = int(os.environ.get('PORT', 5000))

app.run(debug = True, port = PORT)

import os

from mmmpaste import app

# Get the port from the enviroment or fall back to the default.
PORT = int(os.environ.get('PORT', 5000))
DEBUG = bool(os.environ.get('PORT', True))

app.run(debug = DEBUG, port = PORT)

Allow debug mode to be configured via an environment variable.
Allow debug mode to be configured via an environment variable.
