old_contents: # -*- coding: utf8 -*-
  
  
  from flask.ext.script import Manager
  from .urls import app
  
  
  manager = Manager(app)
  
  
  @manager.command
  def runserver(host="127.0.0.1", port="5000"):
      from gevent import monkey
      from gevent.wsgi import WSGIServer
      monkey.patch_all()
      print(" * Running on http://" + host + ":" + port + "/")
      WSGIServer((host, int(port)), app).serve_forever()
  
  
  def main():
      manager.run()
  
  if __name__ == "__main__":
      main()
  
new_contents: # -*- coding: utf8 -*-
  
  
  from flask.ext.script import Manager
  from .urls import app
  
  
  manager = Manager(app)
  
  
  @manager.command
  def runserver(host="127.0.0.1", port="5000", debug=False):
      from gevent import monkey
      from gevent.wsgi import WSGIServer
      monkey.patch_all()
      app.debug = debug
      print(" * Running on http://" + host + ":" + port + "/")
      WSGIServer((host, int(port)), app).serve_forever()
  
  
  def main():
      manager.run()
  
  if __name__ == "__main__":
      main()
  
subject: add --debug option to runserver