예제 #1
0
파일: run.py 프로젝트: esenator/recipes
#!venv/bin/python
from Recipes import app
app.run(debug=True)
예제 #2
0
"""
This script runs the Recipes application using a development server.
"""

from os import environ
from Recipes import app

if __name__ == '__main__':
    HOST = environ.get('SERVER_HOST', 'localhost')
    try:
        PORT = int(environ.get('SERVER_PORT', '5555'))
    except ValueError:
        PORT = 5555
    app.run(HOST, PORT)