Created
August 9, 2012 07:37
-
-
Save kamito/3302027 to your computer and use it in GitHub Desktop.
i3 Rails template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
run "rm public/index.html" | |
# gem | |
gem 'mysql2' | |
gem 'json' | |
gem 'rspec-rails', :group => [:development, :test] | |
run 'bundle install' | |
# generator | |
generate 'rspec:install' | |
# config | |
run 'rm -rf ./config/database.yml' | |
file './config/database.yml', <<-DATABASE | |
# MySQL version 5.x | |
# gem install mysql2 | |
common: &common | |
adapter: mysql2 | |
encoding: utf8 | |
reconnect: false | |
pool: 5 | |
host: localhost | |
username: mysqluser | |
password: password | |
development: | |
<<: *common | |
database: DATABASE_NAME | |
test: | |
<<: *common | |
database: DATABASE_NAME | |
production: | |
<<: *common | |
database: DATABASE_NAME | |
DATABASE | |
route("root :to => 'home#index'") | |
# Do that damn thang in Git | |
git :init | |
git :add => "." | |
puts "================================================================" | |
puts " Your application is just about ready! Just cd and go... " | |
puts "================================================================" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment