Skip to content

Instantly share code, notes, and snippets.

@miwillhite
Created November 16, 2011 19:29
Show Gist options
  • Save miwillhite/1371065 to your computer and use it in GitHub Desktop.
Save miwillhite/1371065 to your computer and use it in GitHub Desktop.
require File.join(File.dirname(__FILE__), 'config', 'environment.rb')
# disable :run
run Helios
#!/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
<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