#NEWLINE# @ arg ( 'host' , optional = True ) #NEWLINE# @ arg ( 'port' , optional = True ) #NEWLINE# @ arg ( 'noreload' , optional = True , default = False ) #NEWLINE# def runserver( self , host , port , noreload ) : #NEWLINE# #INDENT# 'Runs the development server for the current application.\n\n        Args:\n            host: The host to bind to\n            port: The port to run on\n        ' #NEWLINE# app_dir = os . environ [ 'APP_DIR' ] #NEWLINE# app_module = os . environ [ 'APP_MODULE' ] #NEWLINE# script_dir = os . environ [ 'SCRIPT_DIR' ] #NEWLINE# public_dir = os . environ [ 'PUBLIC_DIR' ] #NEWLINE# os . chdir ( app_dir ) #NEWLINE# app = load_definition_from_string ( '{0}.app.application' . format ( app_module ) ) #NEWLINE# kwargs = { #NEWLINE# #INDENT# 'app' : app , #NEWLINE# 'script_dir' : script_dir , #NEWLINE# 'public_dir' : public_dir , #NEWLINE# #UNINDENT# } #NEWLINE# if host : #NEWLINE# #INDENT# kwargs [ 'host' ] = host #NEWLINE# #UNINDENT# if port : #NEWLINE# #INDENT# kwargs [ 'port' ] = int ( port ) #NEWLINE# #UNINDENT# kwargs [ 'noreload' ] = ( True if noreload else False ) #NEWLINE# make_dev_server ( ** kwargs )