Heroku_deployment is a project mainly written in Ruby, based on the MIT license.
Tools to automate deployment to Heroku
= heroku_deployment
Deployment scripts for Heroku.
To generate CSS and JS use:
match "generate_js_and_css" => "application#generate_js_and_css"
def generate_js_and_css render :inline => "SUCCESS", :layout => true end
If you have all your CSS and JS declared in the layout file, this should work.
Created a rake task, or just an ruby script (which i prefer) with the following:
require "heroku_deployment"
HerokuDeployment::Config.setup do |config| config.app = "heroku_app" config.remote = "heroku" config.generate_url = "/generate_js_and_css" config.js_files = ["all.js"] config.css_files = ["all.css"] config.compress_js = true config.compress_css = true config.migrate = true config.hoptoad = true end
app = HerokuDeployment::Rails.new app.deploy
== Contributing to heroku_deployment
== Copyright
Copyright (c) 2010 Mooktakim Ahmed. See LICENSE.txt for further details.