Skip to content
Browse files

added sinatra

  • Loading branch information...
1 parent e651848 commit 74df152886bea6822a5bf033a36ceff03d32b90b @chrismatthieu committed
Showing with 4 additions and 1 deletion.
  1. +2 −0 README.rdoc
  2. +2 −1 app.rb
  3. 0 { → public}/im.css
  4. 0 { → public}/im.js
  5. 0 { → public}/index.html
View
2 README.rdoc
@@ -11,3 +11,5 @@ This example code shows you how to build a group IM chat in a website using the
http://christoffe.local/phonoim/chat.html?chatroom=nodester&user=chris
+Note: I wrapped this static HTML file with Ruby/Sinatra so that I could host it on heroku for free demos
+
View
3 app.rb
@@ -2,5 +2,6 @@
require 'sinatra'
get '/' do
- redirect '/index.html'
+ # redirect '/index.html'
+ File.new('public/index.html').readlines
end
View
0 im.css → public/im.css
File renamed without changes.
View
0 im.js → public/im.js
File renamed without changes.
View
0 index.html → public/index.html
File renamed without changes.

0 comments on commit 74df152

Please sign in to comment.
Something went wrong with that request. Please try again.