Skip to content

Instantly share code, notes, and snippets.

@jeffersongirao
Forked from ecclesiastes/rubber-ec2-sinatra.rb
Created August 19, 2013 13:43
Show Gist options
  • Save jeffersongirao/6269271 to your computer and use it in GitHub Desktop.
Save jeffersongirao/6269271 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