Created
June 11, 2009 12:49
-
-
Save kubicek/127877 to your computer and use it in GitHub Desktop.
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
# Usage: | |
# rails project_name -m http://gist.github.com/127877.txt |
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
git :init | |
run "mv README doc/README_FOR_RAILS" | |
run "echo 'doc/README_FOR_APP' > README" | |
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore" | |
run "cp config/database.yml config/example_database.yml" | |
file ".gitignore", <<-END | |
.DS_Store | |
*/.DS_Store | |
log/*.log | |
tmp/**/* | |
!log/.gitignore | |
!tmp/.gitignore | |
config/database.yml | |
db/*.sqlite3 | |
doc/app/ | |
coverage | |
END | |
git :add => ".", :commit => "-m 'initial commit -- empty Rails application'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment