I recently saw some online discussion asking about how to manage the issue of the URL changing for google app script code deployments. There is a really simple way of resolving this using google sites. I've described how to do it below.
First, create the google app script app, as you would any app, deploy the app as a Web app and you'll soon have the lengthy, difficult to remember and generally not that nice URL in the address bar.
This little app, records your name and displays it once submitted. Perfect for this example.
Then, head on over to google sites via sites.new
Click the 'Embed' option on any page
Click the 'Embed' option on any page
In the 'Embed from the web' pop up, paste in the URL for the app script web app and click 'insert. You'll then see your web app displayed on the page
Click the 'Embed' option on any page
Enter a suitable web site name if you're using the standard https://sites.google.com/.... URL (which is free)
Click Publish
Then your site will have been published to the web and will be accessible via the URL you created!
The URL for the site will be displayed in the address bar so you can share this with other people and not the lengthy google app scripts URL which is long and can change when making multiple deployments.
If you need to change the deployment, just update the URL on the page and republish the site. All users using the site URL will still access the same place, you've just updated the contents thats displayed on that site.
Comments
Post a Comment