code: def gen_procfile(ctx, wsgi, dev):
      
      if wsgi is None:
          if os.path.exists("wsgi.py"):
              wsgi = "wsgi.py"
          elif os.path.exists("app.py"):
              wsgi = "app.py"
          else:
              wsgi = "app.py"
              ctx.invoke(gen_apppy)
  
      def write_procfile(filename, server_process, debug):
          processes = [server_process] + current_app.processes
          procfile = []
          for name, cmd in procfile_processes(processes, debug).iteritems():
              procfile.append("%s: %s" % (name, cmd))
          with open(filename, "w") as f:
              f.write("\n".join(procfile))
  
      write_procfile("Procfile", ("web", ["gunicorn", wsgi]), False)
      if dev:
          write_procfile("Procfile.dev", ("web", ["frasco", "serve"]), True)
docs: Generates Procfiles which can be used with honcho or foreman.