-
-
Save dmclark/268021 to your computer and use it in GitHub Desktop.
initial rails app creation
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
Creating a rails app "Vurl" | |
http://www.vimeo.com/3761040 | |
(replace vurl with your appname, then Vurl is first model, too) | |
rails -d mysql vurl | |
cd vurl | |
git init | |
cat > .gitignore | |
log/*.log | |
db/*.sqlite3 | |
tmp/**/* | |
doc/api | |
doc/app | |
doc/plugins | |
touch log/.gitignore | |
git add . | |
git commit -m "Initial commit." | |
script/generate rspec | |
git commit -m "Add rspec." | |
script/generate rspec_scaffold Vurl url:string slug:string | |
rake db:migrate | |
rake -T (help for rake commands) | |
rake spec # runs automated test suite to see what passes | |
# passing test suite. | |
Notes: | |
To change default home page: | |
1) delete public/index.html | |
2) uncomment or add line "map.root :controller => "newhome", :action => "newaction" | |
3) added useful tips from http://woss.name/blog/2008/4/9/using-git-submodules-to-track-plugins.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment