Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
first draft
Browse files Browse the repository at this point in the history
  • Loading branch information
barodeur committed May 3, 2012
1 parent 5583b46 commit 40b7c1e
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
source 'https://rubygems.org'

gem 'shotgun'
gem 'sinatra'
gem 'unicorn'
gem 'pry'
35 changes: 35 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
GEM
remote: https://rubygems.org/
specs:
coderay (1.0.5)
kgio (2.7.4)
method_source (0.7.1)
pry (0.9.8.4)
coderay (~> 1.0.5)
method_source (~> 0.7.1)
slop (>= 2.4.4, < 3)
rack (1.4.1)
rack-protection (1.2.0)
rack
raindrops (0.8.0)
shotgun (0.9)
rack (>= 1.0)
sinatra (1.3.2)
rack (~> 1.3, >= 1.3.6)
rack-protection (~> 1.2)
tilt (~> 1.3, >= 1.3.3)
slop (2.4.4)
tilt (1.3.3)
unicorn (4.2.0)
kgio (~> 2.6)
rack
raindrops (~> 0.7)

PLATFORMS
ruby

DEPENDENCIES
pry
shotgun
sinatra
unicorn
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
10 changes: 10 additions & 0 deletions app.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
require 'bundler/setup'

require 'sinatra'
require 'pry'

class App < Sinatra::Base
get '*' do
redirect "http://facebook.com#{request.env['PATH_INFO']}", 301
end
end
3 changes: 3 additions & 0 deletions config.ru
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
require './app.rb'

run App
2 changes: 2 additions & 0 deletions config/unicorn.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
worker_processes 8
timeout 30

0 comments on commit 40b7c1e

Please sign in to comment.