GUI google app script for drive hosting

I got a script from a site which act as a gui for google drive hosting.

function doGet() {
  var output = HtmlService.createHtmlOutputFromFile('labnol');
  output.setTitle('Publish Website on Google Drive');
  return output;  
}

function uploadWebsite(form) {
  
  try {
    
    var zip, files, name, folder, file, host, found=false;
    
    zip    = form.zipFile.setContentType("application/zip");
    files  = Utilities.unzip(zip);
    
    // Unique folder name based on the current date and time
    name   = Utilities.formatDate(new Date(), "GMT", "ddMMyyyyHHmmss");
    folder = DriveApp.createFolder("Website #" + name);    
    
    for (var i=0; i<files.length; i++) {
      file = folder.createFile(files[i]);
      if (file.getName() === "index.html") {
        found = true; 
      }       
    }
    
    if (found) {
      // Set the sharing permissions of the Drive folder as Public
      folder.setSharing(DriveApp.Access.ANYONE, DriveApp.Permission.VIEW);
      var site = "https://googledrive.com/host/" + folder.getId() + "/";      
      return 'Your <a href="' + site + '" target="_blank">website</a> is now live on Google Drive. The URL is: ' + site;
    } else {
      // if the index.html file is not available, don't publish the website
      DriveApp.removeFolder(folder);
    }
    
    return "Sorry, we couldn't find an index.html in your zip file. Please try again.";
    
  } catch (e) {    
    return e.toString();    
  }
  
}

How to set it up properly. I get a No HTML file named labnol was found. (line 2, file "Code") error when deployed as a web app. Here is the link to app, https://script.google.com/d/1dgiEpSyWnc6MjbZ1rDwFas43eb0BGT5W-GXINRa-ME48t-uQRF-nNALi/edit . Which html file I have to add to project. I am a newbie. Did google stop drive hosting feature? Is there any other static site hosting -GUI- script available there. Thanks for helping…

Some help please…

This is a helper script to assist in hosting from a Google Drive folder. Unfortunately I’m fairly sure this is not possible anymore. Also, there is a missing file labnol.html.

Can you provide a link to the website in addition to the script? There should probably be some instructions there.

You can still host web apps from your Google account with Apps Script (which is how that helper script was hosted) but there are some limitations and every page will have an ugly banner across the top proclaiming “This application was created by another user, not by Google.” Unless you have a need to interact with your Google account or Google Drive documents or some other G service this is probably not what you want.

You might do better to look at free hosting at GitHub. There are lots of online tutorials on doing that.

@alhazen1
Thank you very much for taking time for help me out. Following is the site which gave me code.
https://www.labnol.org/internet/host-website-on-google-drive/28178/
. Can you please take a look into it. I know about GitHub hosted site. But for this time I need it. Thanks.

If you open that video in YouTube you will see in the comments that others are claiming that this method is no longer working too. One of the comments mentioned this tool as a workaround https://drv.tw/#how

I tried a quick and dirty test sharing a file / folder just as the script would and it did not work for me.

Why the need for Google hosting?

Like I said above you could do that with Apps Script but you would have to suffer the warning banner and it is a bit more difficult than just dropping files into a directory.

Actually I don’t want to make static sites, but my customers want to make those. I need a GUI or CMS what you call it don’t know, for that.
Do you have any alternative.