Esempio n. 1
0
from notejam import app
from notejam.config import DevelopmentConfig
import os

app.config.from_object(DevelopmentConfig)


if __name__ == '__main__':
    app.run(host='0.0.0.0')
Esempio n. 2
0
from notejam import app

if __name__ == '__main__':
    app.run()
Esempio n. 3
0
from notejam import app
from notejam.config import DevelopmentConfig

app.config.from_object(DevelopmentConfig)

if __name__ == '__main__':
    app.run()
Esempio n. 4
0
import os
from notejam import app

from logging.config import dictConfig

host = '127.0.0.1'
env_config = os.environ.get("APP_SETTINGS")
if env_config:
    host = '0.0.0.0'

if __name__ == '__main__':
    app.run(host=host)
Esempio n. 5
0
from notejam import app
from notejam.config import DevelopmentConfig
from notejam.config import ProductionConfig
from notejam.config import TestingConfig
import os

if __name__ == '__main__':
    environment = os.getenv('ENVIRONMENT', 'TESTING')

    if environment == 'development':
        print("Development environment, loading development config")
        app.config.from_object(DevelopmentConfig)

    elif environment == 'production':
        print("Production environment, loading production config")
        app.config.from_object(ProductionConfig)

    app.run("0.0.0.0")
Esempio n. 6
0
from notejam import app
from notejam.config import DevelopmentConfig

app.config.from_object(DevelopmentConfig)

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=8000)
Esempio n. 7
0
from notejam import app
from notejam.config import DevelopmentConfig


app.config.from_object(DevelopmentConfig)

if __name__ == '__main__':
    app.run(debug=True,host='0.0.0.0',port=5000)
Esempio n. 8
0
from notejam import app
from notejam.config import ProductionConfig

app.config.from_object(ProductionConfig)

if __name__ == '__main__':
    app.run(host="0.0.0.0")
Esempio n. 9
0
from notejam import app


app.run(debug=True)
Esempio n. 10
0
import os
from notejam import app
from notejam.config import DevelopmentConfig, TestingConfig, ProductionConfig, DevelopmentLocalConfig

if os.getenv('ENV') == 'DEV':
    app.config.from_object(DevelopmentConfig)
elif os.getenv('ENV') == 'TST':
    app.config.from_object(TestingConfig)
elif os.getenv('ENV') == 'PRD':
    app.config.from_object(ProductionConfig)
else:
    app.config.from_object(DevelopmentLocalConfig)

if __name__ == '__main__':
    app.run(host='0.0.0.0', debug=True)
from notejam import app

if __name__ == '__main__':
    app.run(host="0.0.0.0", port=80, debug=False, use_reloader=True)
Esempio n. 12
0
from notejam import app as application

if __name__ == '__main__':
    application.run()
Esempio n. 13
0
from notejam import app
from notejam.config import DevelopmentConfig

app.config.from_object(DevelopmentConfig)

# start of application
if __name__ == '__main__':
    app.run(host='0.0.0.0', port=5000, debug=True)
Esempio n. 14
0
from notejam import app

if __name__ == '__main__':
    app.run(host="0.0.0.0", port=5000)
Esempio n. 15
0
from notejam import app
from notejam.config import Config

app.config.from_object(Config)

if __name__ == '__main__':
    app.run(host='0.0.0.0', debug=True, port=80)