Skip to content

Instantly share code, notes, and snippets.

View cgallagher's full-sized avatar

Chris Gallagher cgallagher

View GitHub Profile
# template.rb
# USAGE: rails -m http://gist.github.com/gists/115163.txt PROJECT_NAME
run "rm public/index.html"
plugin 'thinking_sphinx', :git => 'git://github.com/freelancing-god/thinking-sphinx.git'
plugin 'will_paginate', :git => 'git://github.com/mislav/will_paginate.git'
plugin 'factory_girl', :git => 'git://github.com/thoughtbot/factory_girl.git'
plugin 'paperclip', :git => 'git://github.com/thoughtbot/paperclip.git'
plugin 'project_search', :git => 'git://github.com/37signals/project_search.git'
plugin 'hubahuba', :git => 'git://github.com/paulca/hubahuba.git'
@cgallagher
cgallagher / deploy.rake
Created November 16, 2012 09:34 — forked from ndbroadbent/deploy.rake
Rake task for precompiling assets locally before deploying to Heroku
require 'fileutils'
# Warning: The following deploy task will completely overwrite whatever is currently deployed to Heroku.
# The deploy branch is rebased onto master, so the push needs to be forced.
desc "Deploy app to Heroku after precompiling assets"
task :deploy do
deploy_branch = 'heroku'
remote = 'heroku'
deploy_repo_dir = "tmp/heroku_deploy"