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')
from notejam import app if __name__ == '__main__': app.run()
from notejam import app from notejam.config import DevelopmentConfig app.config.from_object(DevelopmentConfig) if __name__ == '__main__': app.run()
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)
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")
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)
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)
from notejam import app from notejam.config import ProductionConfig app.config.from_object(ProductionConfig) if __name__ == '__main__': app.run(host="0.0.0.0")
from notejam import app app.run(debug=True)
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)
from notejam import app as application if __name__ == '__main__': application.run()
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)
from notejam import app if __name__ == '__main__': app.run(host="0.0.0.0", port=5000)
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)