
This simple tutorial
will show you how
you can host a basic website (built using HTML & CSS) on Google’s servers,
for free. And you can
easily complete this between 1 and 3 hours.
Technically, Google does not provide free hosting solutions, but they do provide aPlatform As A Service (PAAS) known as Google App Engine (GAE).
There are quite a
few advantages with hosting websites on Google App Engine. First, it should be
more reliable since your site will get served through Google’s own data
centers.
Second, if you have a low traffic website, it is highly likely
that you won’t have to spend a penny for web hosting. You get 1 GB of free
storage space for hosting your images, HTML web pages and other files and 1 GB
of bandwidth per day.
With a regular web hosting company,
you rend some storage space on their server, you then transfer your HTML and
other files to that server using FTP or cPanel and your website is ready to
serve. Google App Engine works in similar manner except that the file transfer
mechanism is a bit different.
Step 1: Go to appengine.google.com and create a new application. If you have
never used App Engine before, you might be asked to verify your mobile phone
number before you can create a new app.
Step 2: Give your
application a name – it should be unique and may only include lowercase
alphabets and digits. For this example, our app identifier is
“thisismyawesomewebsite”.
Step 3: The next two
sub-steps may scare some of you but trust me; they simply require you download
and run two installers in the given sequence.
3a. Download and install Python from python.org.3b. Download and install App Engine SDK from this code.google.com.
Step 4: Download and unzip
this file – website.zip – somewhere on your desktop. It
contains a basic website with some HTML pages, images and CSS that we’ll try to
host with Google App Engine.
Step 5: Open the app.yaml
file with notepad and replace the word ‘labnol’ with the application identifier
that you created in Step 2 above. Save the changes.
Step 6: Finally it’s time to
deploy /upload our website to Google App Engine. Open the Google App Engine
Launcher program from the Start Menu, choose File – > Add Existing
Application and browse to the folder where you unzipped the website.
Hit the deploy button, input your Google Account credentials and
within seconds, your website should become available online at abc.appspot.com
where abc is your unique app identifier. Later, if you add or modify any web
page, press Deploy again and your new /edited files will get uploaded to App
Engine.
Your
website will be hosted as a sub-domain of appspot.com but you can register a
web domain with Google Apps and map the App Engine website to your own domain.
I hope this helps. If you have any question or
suggestion please use the comment box below and I’ll get back to you.
No comments:
Post a Comment
Please leave your message, I'll get back to you ASAP, Thanks.