Skip to content

Commit

Permalink
Take advantage or production changes and simplify rackup.ru
Browse files Browse the repository at this point in the history
  • Loading branch information
bmizerany committed Feb 6, 2009
1 parent 8b8ddf5 commit d6e13b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
8 changes: 6 additions & 2 deletions README.markdown
Expand Up @@ -11,12 +11,16 @@ it](http://heroku.com/docs/index.html#_manage_keys_on_heroku)

Now, clone and deploy!

`projects $ git clone git://github.com/sinatra/heroku-sinatra-app`
`projects $ wget http://github.com/sinatra/heroku-sinatra-app/tarball/master`

`projects $ cd heroku-sinatra-app`
`projects $ tar xzvf sinatra-heorku-sinatra-app-<SHA>.tar.gz`

`projects $ mv sinatra-heroku-sinatra-app-<SHA>/ my_new_app/`

`my_new_app $ heroku create <optional appname> --remote`

`my_new_app $ mv heroku-sinatra-app.r my_new_app.rb`

`my_new_app $ git push heroku master`

Now you may view your site at `http://<appname>.heroku.com`
Expand Down
15 changes: 1 addition & 14 deletions config/rackup.ru
@@ -1,16 +1,3 @@
require 'rubygems'

# We will need to require Sinatra to gain
# access to the Sinatra environment for
# bootstrapping before loading the application
require 'sinatra'

# This will soon not be needed on Heroku.
# For now it's important that you set the
# environment before requiring the application
# to allow `configure` to work properly
set :environment, :production

# This is for convenice. The defacto Sinatra standard
# is to name your application file after it's parent
# directory
Expand All @@ -27,4 +14,4 @@ require "#{parent_directory}/#{application_name}.rb"
disable :run, :reload

# Finally, let's jam!
run Sinatra::Application
run Sinatra::Application

0 comments on commit d6e13b0

Please sign in to comment.