Skip to content

Instantly share code, notes, and snippets.

@stuarthannig
Created January 10, 2014 04:19
Show Gist options
  • Save stuarthannig/8346939 to your computer and use it in GitHub Desktop.
Save stuarthannig/8346939 to your computer and use it in GitHub Desktop.
Nitrous.io & GitHub
$ rvm get stable
$ rvm requirements
$ rvm use 2.0.0@<gemset_name> --create --default
ruby-2.0.0-p353 is not installed.
To install do: 'rvm install ruby-2.0.0-p353'
$ gem install rails
$ rails new <project_name> --skip-test-unit
$ cd <project_name>
Rename README.rdoc to README.md and delete the contents.
Rename config/initializers/secret_token.rb to secret_token-example.rb.
Rename config/initializers/database.yml to database-example.yml.
Recreate secret_token.rb with random token generator.
Add ruby version & ruby gemset to the Gemfile.
$ bundle update
$ bundle install --without production
$ rails generate rspec:install
$ git config --global user.name "<full name>"
$ git config --global user.email "<email address>"
$ git init
$ git add -A
$ git commit -m "Initial commit."
$ git remote add origin https://github.com/<username>/<project_name>.git
$ git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment