parameters: ()
docstring: DESTROYS rendered server configurations from the specified server.
      This will reload nginx and stop the uwsgi config.
docstring_summary: DESTROYS rendered server configurations from the specified server.
      This will reload nginx and stop the uwsgi config.
docstring_tokens: DESTROYS rendered server configurations from the specified server . This will reload nginx and stop the uwsgi config .
function: def nuke_confs():
      """
      DESTROYS rendered server configurations from the specified server.
      This will reload nginx and stop the uwsgi config.
      """
      require('settings', provided_by=[production, staging])
  
      for service, remote_path, extension in app_config.SERVER_SERVICES:
          with settings(warn_only=True):
              installed_path = _get_installed_conf_path(service, remote_path, extension)
  
              sudo('rm -f %s' % installed_path)
  
              if service == 'nginx':
                  sudo('service nginx reload')
              elif service == 'uwsgi':
                  service_name = _get_installed_service_name(service)
                  sudo('service %s stop' % service_name)
                  sudo('initctl reload-configuration')
              elif service == 'app':
                  sudo('rm %s' % app_config.UWSGI_SOCKET_PATH)
                  sudo('rm %s' % app_config.UWSGI_LOG_PATH)
                  sudo('rm %s' % app_config.APP_LOG_PATH)
function_tokens: def nuke_confs ( ) : require ( 'settings' , provided_by = [ production , staging ] ) for service , remote_path , extension in app_config . SERVER_SERVICES : with settings ( warn_only = True ) : installed_path = _get_installed_conf_path ( service , remote_path , extension ) sudo ( 'rm -f %s' % installed_path ) if service == 'nginx' : sudo ( 'service nginx reload' ) elif service == 'uwsgi' : service_name = _get_installed_service_name ( service ) sudo ( 'service %s stop' % service_name ) sudo ( 'initctl reload-configuration' ) elif service == 'app' : sudo ( 'rm %s' % app_config . UWSGI_SOCKET_PATH ) sudo ( 'rm %s' % app_config . UWSGI_LOG_PATH ) sudo ( 'rm %s' % app_config . APP_LOG_PATH )