- Navigate to base Rails applications folder and execute:
- rails new newAppName -T
- The -T prevents rails generating Test::Unit files - we'll use RSpec
- Copy/create three required files from a base application:
- .autotest
- .gitignore
- Gemfile
- Install new gems with:
- Generate files required by RSpec:
- rails generate rspec:install
- Add switches to .rspec:
- --colour
- --drb
- Bootstrap Spork:
- bundle exec spork --bootstrap
- Initialise the Git repository:
- git init
- git add .
- git commit -m "Initial Commit"
- Update the application README contents, then change to use the markdown extension:
- git mv README README.markdown
- git commit -a -m "Improved the README"
Optional:
- Create remote repo - on GitHub, Unfuddle, etc. Push code to remote repo regularly.
- Deploy app to Heroku:
- git push heroku master
No comments:
Post a Comment
Please leave a comment if you find this blog helpful or interesting! I'd love to hear from you!