DEV Community

Cover image for Static web hosting with SashiDo
Vesi Staneva for SashiDo.io

Posted on • Originally published at blog.sashido.io

Static web hosting with SashiDo

One of the guideline policies that Parse created was to try to make everything convenient for its users and that was one of the main reasons developers loved the service. SashiDo’s team wants to keep this tradition by providing our customers with the same experience of comfort and effortless coding. I’m sure this happened to you: you get an order for an app, but the customer also wants a website with it. So you have to use one provider for the mobile application, another for the website, deal with web hosting and sftp servers, domain name registering etc. Wouldn’t it be lovely to have everything in one place?

With SashiDo you can :)

In this tutorial, we’ll show you how to publish static web sites in a few simple steps.
When you deploy Cloud Code in your GitHub repo, any files in your directory ‘public’ is uploaded to Parse Server and becomes accessible online. You can choose a subdomain in their app settings.

So let’s get started.

  • Go to SashiDo’s Dashboard > App Settings > Emails & Hosting . Choose a subdomain name, it should be in the following format:

    [subdomain-name].yoursite.com

  • Enter the wanted subdomain + mysite.com in the input, don’t press ‘Save changes’ yet.

  • By entering the subdomain’s name you’ll see hostnames to resolve the CNAME.

  • Now you have to claim the new hostname. Go to your DNS provider and set up a new CNAME record.
  • Go back to SashiDo’s Dashboard and now save the changes.
  • You already know about your private GitHub repo with your Cloud Code hosted in it link to tutorial. It also holds a folder named ‘public’ where you can keep your html, css, JavaScript, image files.
  • Clone the repository and
git add .
git commit -am 'upload my awesome site'
git push
Enter fullscreen mode Exit fullscreen mode

your website files in the ‘public’ directory. Every push triggers a deploy so you don’t have to deploy the code afterward :)

  • Now go to your new domain and see how the website just came alive for the web.

alt

Here’s some useful documentation on how to add new CNAME record:

GoDaddy

Amazon

namecheap

networksolutions

Continue enjoying simple and straight-forward coding, leave the messy server-side stuff to us to handle :)

We can’t wait to see the amazing sites you’ll create and host on SashiDo.

Happy coding :)

Top comments (0)