Skip to content

Instantly share code, notes, and snippets.

@postnati
Created July 11, 2011 10:05
Show Gist options
  • Save postnati/1075638 to your computer and use it in GitHub Desktop.
Save postnati/1075638 to your computer and use it in GitHub Desktop.
PhoneGap app.rb
require 'sinatra'
set :public, File.dirname(__FILE__) + '/www'
@Gowiem
Copy link

Gowiem commented May 19, 2012

Not sure if you ran into this problem or not, but I had to add the following to my app.rb for sinatra to run.

get '/' do
  File.read('www/index.html')
end

Your tut was a great inspiration by the way! I ended up using Guard to do everything for me, but I'm not sure if I would have had the idea to actually use Haml, Sass, and CoffeeScript without your article. So Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment