Skip to content

Instantly share code, notes, and snippets.

@ecclesiastes
Created September 18, 2009 20:02
Show Gist options
  • Save ecclesiastes/189258 to your computer and use it in GitHub Desktop.
Save ecclesiastes/189258 to your computer and use it in GitHub Desktop.
# Deploying Sinatra apps to Amazon EC2 using rubber (normally used for Rails deployment to EC2)
#
# Rakefile needed by rubber for non-rails apps
#
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
env = ENV['RUBBER_ENV'] ||= (ENV['RAILS_ENV'] || 'development')
root = File.dirname(__FILE__)
require 'rubber'
Rubber::initialize(root, env)
require 'rubber/tasks/rubber'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment