Static web hosting with SashiDo

Peruna Keremidchieva

One of the guideline policy that Parse created was to try to make everything convenient for their 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 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 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 host names to resolve the CNAME.

  • Now you have to claim the new host name. 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 you 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

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

  • 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 :)

Peruna Keremidchieva

SashiDo's community manager & customer happiness freak.

Find answers to all your questions

Our Frequently Asked Questions section is here to help.