Skip to content

Zensavona/Sinatroku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sinatroku

This is basically an empty Sinatra wrapper for serving static or client only Javascript sites on Heroku.

Usage

In the app.rb file, add a route for each page you want to serve

For example:

get '/' do
  redirect '/index.html'
end

This will just redirect the user to the html file, giving you a url which contains /index.html. If you are like me and don't think this looks pretty, you can mask it like this:

get '/' do
  File.new('public/index.html').readlines
end

Enjoy!

About

A bare, empty sinatra application for serving static sites on Heroku

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages