Skip to content

Instantly share code, notes, and snippets.

@beef
Created June 22, 2009 13:51
Show Gist options
  • Save beef/133973 to your computer and use it in GitHub Desktop.
Save beef/133973 to your computer and use it in GitHub Desktop.
# base_template.rb
run "echo TODO > README"
run "rm public/index.html"
generate :controller, "home index"
route "map.root :controller => 'home'"
run "cp config/environments/production.rb config/environments/staging.rb"
run "echo '\nstaging:\n production' >> config/database.yml"
rake "db:migrate", :env => "production"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment