Permalink
Browse files

initial

  • Loading branch information...
0 parents commit 4b6057885dfc959565ee19d5403e6943c276b9e7 @motdotla committed Jan 13, 2012
Showing with 89 additions and 0 deletions.
  1. +9 −0 Gemfile
  2. +43 −0 Gemfile.lock
  3. +1 −0 Procfile
  4. +26 −0 README.textile
  5. +3 −0 app.rb
  6. +7 −0 config.ru
@@ -0,0 +1,9 @@
+source :rubygems
+
+gem 'sinatra'
+gem 'thin'
+
+group :development do
+ gem 'foreman'
+ gem 'heroku'
+end
@@ -0,0 +1,43 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ addressable (2.2.6)
+ daemons (1.1.4)
+ eventmachine (0.12.10)
+ foreman (0.24.0)
+ term-ansicolor (~> 1.0.5)
+ thor (>= 0.13.6)
+ heroku (2.17.0)
+ launchy (>= 0.3.2)
+ rest-client (~> 1.6.1)
+ rubyzip
+ term-ansicolor (~> 1.0.5)
+ launchy (2.0.5)
+ addressable (~> 2.2.6)
+ mime-types (1.17.2)
+ rack (1.4.0)
+ rack-protection (1.2.0)
+ rack
+ rest-client (1.6.7)
+ mime-types (>= 1.16)
+ rubyzip (0.9.4)
+ sinatra (1.3.2)
+ rack (~> 1.3, >= 1.3.6)
+ rack-protection (~> 1.2)
+ tilt (~> 1.3, >= 1.3.3)
+ term-ansicolor (1.0.7)
+ thin (1.2.11)
+ daemons (>= 1.0.9)
+ eventmachine (>= 0.12.6)
+ rack (>= 1.0.0)
+ thor (0.14.6)
+ tilt (1.3.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ foreman
+ heroku
+ sinatra
+ thin
@@ -0,0 +1 @@
+web: bundle exec thin start -p $PORT -e $RACK_ENV
@@ -0,0 +1,26 @@
+h1. Sinatra Heroku Cedar Template
+
+p. The bare minimum for a sinatra app on cedar, running thin, and using bundler.
+
+h2. Putting it up on Heroku
+
+<pre>
+ $ git clone git://github.com/scottmotte/sinatra-heroku-cedar-template.git
+ $ gem install bundler
+ $ bundle
+ $ heroku create -s cedar mywebapp
+ $ git push heroku master
+ $ heroku open
+</pre>
+
+
+h2. Running it locally
+
+<pre>
+ $ git clone git://github.com/scottmotte/sinatra-heroku-cedar-template.git
+ $ gem install bundler
+ $ bundle
+ $ RACK_ENV=development be foreman start
+</pre>
+
+Navigate to localhost:5000 | 5100
3 app.rb
@@ -0,0 +1,3 @@
+get '/' do
+ "Sinatra Heroku Cedar Template - The bare minimum for a sinatra app on cedar, running thin, and using bundler."
+end
@@ -0,0 +1,7 @@
+require 'rubygems'
+require 'bundler'
+
+Bundler.require
+
+require './app.rb'
+run Sinatra::Application

0 comments on commit 4b60578

Please sign in to comment.