Serving static files with Sinatra

Posted by TK on Stack Overflow See other posts from Stack Overflow or by TK
Published on 2010-03-13T05:38:31Z Indexed on 2010/03/13 5:45 UTC
Read the original article Hit count: 398

Filed under:
|

I have one page website only using HTML, CSS and JavaScript. I want to deploy the app to Heroku, but I cannot find a way to do it. I am now trying to make the app working with Sinatra.

.
|-- application.css
|-- application.js
|-- index.html
|-- jquery.js
`-- myapp.rb

And the following is the content of myapp.rb.

require 'rubygems'
require 'sinatra'

get "/" do
  # What should I write here to point to the `index.html`
end

© Stack Overflow or respective owner

Related posts about ruby

Related posts about sinatra