code: def upload_supervisor_app_conf(app_name, template_name=None, context=None):
      
  
      default = {'app_name': app_name}
      context = context or {}
      default.update(context)
      template_name = template_name or [u'supervisor/%s.conf' % app_name, u'supervisor/base.conf']
      destination = u'/etc/supervisor/conf.d/%s.conf' % app_name
      upload_template(template_name, destination, context=default, use_sudo=True)
      supervisor_command(u'update')
docs: Upload Supervisor app configuration from a template.