Skip to content

Instantly share code, notes, and snippets.

View vita's full-sized avatar

Vít Krchov vita

  • productboard
  • Prague
View GitHub Profile
@vita
vita / gist:5065535
Last active December 14, 2015 09:29 — forked from jkovar/gist:4508830
run 'rm public/index.html'
# RVM
file '.rvmrc', "rvm 1.9.2@#{app_name} --create"
# Setup database
gsub_file 'config/database.yml', /username: (.*)/, 'host: localhost'
gsub_file 'config/database.yml', /password:/, ''
# Gems
@vita
vita / minimal_rails_template.rb
Created November 30, 2009 16:16 — forked from karmi/minimal_rails_template.rb
Kraxnet's rails template
# Delete/Move Rails default files
log 'moving', 'Rails default files'
run "mv README doc/README_FOR_RAILS"
run "rm public/index.html"
# Copy database.yml
log "copying", "database.yml"
run "cp config/database.yml config/database.example.yml"
# Create App config