Created
November 16, 2011 19:29
-
-
Save miwillhite/1371065 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require File.join(File.dirname(__FILE__), 'config', 'environment.rb') | |
# disable :run | |
run Helios |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
class Helios < Sinatra::Base | |
set :public_folder, File.join(APP_ROOT, 'public') | |
register Sinatra::Contrib | |
register Sinatra::RespondWith | |
use Rack::AcceptHeaderUpdater | |
get '/docs' do | |
File.read File.join(settings.public_folder, 'docs', 'index.html') | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html><head><meta http-equiv="Refresh" CONTENT="0; URL=files/concerns/fault-rb.html"></head></html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment