Even with RubyMine starting a new project is not simply File, New Project, like the rails new command, it can only take you so far.
It’s not complicated to set up a new Rails project but, as something you are likely to do farily infrequently, it is easy to skip or forget steps or commands. Charles Max Wood has posted a screencast of his Rails set up at what looks to be the start of a great screencast series.
Here is a terse run down of my setup:
rails new appname -J -T-J skips prototype files, -T skips testunit files.cd appnamervm --create --rvmrc 1.9.2@appnamervm rvmrc trustmvim .or mate . or whatever editor you use.- Amend the /Gemfile (Edit: I’ll update these files as I improve my process, add new gems to the default set and gems are updated/changed)
bundle installrails g rspec:installrails g cucumber:install --capybara --rspec --sporkspork --bootstraprails g jquery:install -uirake db:create- Amend /.gitignore
git flow initAccept the git-flow defaults. I like the structure provided by git-flow and will post on it in the future to explore it more.git add .git commit -m "Project skeleton"git remote add origin git@github.com:JohnPlummer/project_name.gitgit push -u origin developgit push -u origin master
#1 by Gady on March 13, 2011 - 17:07
Thanks!
What would you add if you deploy on Heroku ?
#2 by John on March 13, 2011 - 23:24
Hi Gady,
.
Not used Heroku yet but they have some good resources on their site. I’ve also seen a good screencast on setting up on Heroku, can’t remember where though