old_contents: from gevent import monkey
  monkey.patch_all()
  
  from wpc import app, db, socketio
  
  from flask.ext.migrate import Migrate, MigrateCommand
  from flask.ext.script import Manager
  
  
  migrate = Migrate(app, db)
  manager = Manager(app)
  manager.add_command('db', MigrateCommand)
  
  
  @manager.command
  def run():
      socketio.run(app)
      app.run(debug=True)
  
  if __name__ == '__main__':
      manager.run()
  
new_contents: from gevent import monkey
  monkey.patch_all()
  
  from wpc import app, db, socketio
  
  from flask.ext.migrate import Migrate, MigrateCommand
  from flask.ext.script import Manager
  
  
  migrate = Migrate(app, db)
  manager = Manager(app)
  manager.add_command('db', MigrateCommand)
  
  
  @manager.command
  def run():
      socketio.run(app)
  
  if __name__ == '__main__':
      manager.run()
  
subject: delete useless app.run string