old_contents: #!/usr/bin/env python
  
  import flask_migrate
  import flask_script
  
  from seabus.web.socketio import socketio
  from seabus.common.database import db
  from seabus.web.web import create_app
  from seabus.nmea_listen.listener import listen
  
  app = create_app('Dev')
  manager = flask_script.Manager(app)
  flask_migrate.Migrate(app, db)
  manager.add_command('db', flask_migrate.MigrateCommand)
  
  @manager.command
  def webdev():
      socketio.run(
          app,
          host='0.0.0.0',
          debug=True,
          use_reloader=True,
      )
  
  @manager.command
  def webprod():
      socketio.run(app)
  
  @manager.command
  def listendev():
      listen(app.config)
  
  @manager.command
  def listenprod():
      app.config.from_object('seabus.web.config.Prod')
      listen(app.config)
  
  if __name__ == '__main__':
      manager.run()
  
new_contents: #!/usr/bin/env python
  
  import flask_migrate
  import flask_script
  
  from seabus.web.socketio import socketio
  from seabus.common.database import db
  from seabus.web.web import create_app
  from seabus.nmea_listen.listener import listen
  
  app = create_app('Dev')
  manager = flask_script.Manager(app)
  flask_migrate.Migrate(app, db)
  manager.add_command('db', flask_migrate.MigrateCommand)
  
  @manager.command
  def webdev():
      socketio.run(
          app,
          host='0.0.0.0',
          debug=True,
          use_reloader=True,
      )
  
  @manager.command
  def webprod():
      app.config.from_object('seabus.web.config.Prod')
      socketio.run(app)
  
  @manager.command
  def listendev():
      listen(app.config)
  
  @manager.command
  def listenprod():
      app.config.from_object('seabus.web.config.Prod')
      listen(app.config)
  
  if __name__ == '__main__':
      manager.run()
  
subject: replace prod config