Skip to content

Use Sinatra to host a static website. Incredibly simple, easy to use. Host a static site on Heroku with the bare minimum no effort.

Notifications You must be signed in to change notification settings

alexQueue/StaticSinatra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StaticSinatra

Use Sinatra to host a static website. Incredibly simple, easy to use. Host a static site on Heroku with a bare minimum of effort.

How To Set up on Heroku:

  1. Set up. Put your pages in /public. Feel free to replace index.html, 404.html, 500.html, and add your own assets.

  2. Install the Heroku toolbelt: https://toolbelt.heroku.com/

  3. $ heroku login

  4. Navigate to your /StaticSinatra directory (which you are free to rename) and do the following:

$ rm -rf .git
$ git init
$ git add .
$ git commit -m "init"
$ heroku create
$ git push heroku master

And now your site is hosted on Heroku under the domain given (which you can easily change by following the instructions on https://devcenter.heroku.com/articles/custom-domains).

Example site: http://staticsinatra.herokuapp.com/

Why?

Until you have thousands of hits per day, Heroku is a free alternative to a lot of hosting platforms. And while you can create amazing dynamic apps on Sinatra or Rails, many developers just need a simple static site to host their restaurant's menu or portfolio.

About

Use Sinatra to host a static website. Incredibly simple, easy to use. Host a static site on Heroku with the bare minimum no effort.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages