Ruby on Rails - how to start a new app - 2011-03-31 14:59
I’ve got Ruby on Rails installed on my Linux box and I’m going to try to write succinct steps for creating a new app so that next time, I’ll be able to just follow these steps:
$ cd ~/rails_projects
$ rails new app_name -T
$ cd app_name
$ gedit Gemfile
Make sure Gemfile looks like this when you edit it:
Gemfile
$ bundle install
$ rails generate rspec:install
$ git init
$ git add .
$ git commit -m “First commit”
You’ll then want to make a repository on Github. Go to github.com and create the repository. Then:
$ git remote add origin git@github.com:username/app_name.git
$ git push origin master