We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
0 parents commit e08274fCopy full SHA for e08274f
Gemfile
@@ -0,0 +1,3 @@
1
+source :rubygems
2
+
3
+gem "sinatra"
Gemfile.lock
@@ -0,0 +1,16 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
4
+ haml (3.0.22)
5
+ nokogiri (1.4.3.1)
6
+ rack (1.2.1)
7
+ sinatra (1.0)
8
+ rack (>= 1.0)
9
10
+PLATFORMS
11
+ ruby
12
13
+DEPENDENCIES
14
+ haml
15
+ nokogiri
16
+ sinatra
config.ru
@@ -0,0 +1,6 @@
+require 'rubygems'
+require 'bundler'
+Bundler.require
+require './redir'
+run Toe
redir.rb
@@ -0,0 +1,5 @@
+class Toe < Sinatra::Base
+ get '/' do
+ redirect "http://localhost:3000"
+ end
+end
0 commit comments