Rails app start guide
Set up a rails app with heroku, zerigo DNS, and bitbucket in one pomodoro:
rails new {app_name} --skip-test-unit
cd {app_name}
git init
git add .
git commit -m "generated skeleton"
vim Gemfile
Gemfile changes
< gem 'sqlite3'
---
> group :development do
9a10,11
> gem 'sqlite3'
> end
25,26c27,32
< # To use ActiveModel has_secure_password
< # gem 'bcrypt-ruby', '~> 3.0.0'
---
> gem 'bcrypt-ruby', '~> 3.0.0'
>
> group :production do
> gem 'pg'
> end
>
Save and resume in shell:
bundle install
git commit -m "Gemfile changes for heroku push" Gemfile Gemfile.lock
heroku create
git push heroku master
git remote add origin ssh://git@bitbucket.org/username/{app_name}.git
git push -u origin --all
heroku addons:add zerigo_dns:basic