Install Rails 3.1 RC
gem install rails --pre
generate new app, skipping Test::Unit file generation
rails new my_app -T
|# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com|
|# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below)|
|describe MovieList, "with optional description" do|
|it "is pending example, so that you can write ones quickly"|
|it "is already working example that we want to suspend from failing temporarily" do|
|pending("working on another feature that temporarily breaks this one")|
|# sudo and scons must be installed even though i don't want to use sudo at all. And i don't change user.|
|# also for git clone to work i have to set up ssh key in .ssh|
|$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path.|
|require "rvm/capistrano" # Load RVM's capistrano plugin.|
|set :rvm_ruby_string, 'ruby-1.9.2@rails31' # Or whatever env you want it to run in.|
|set :rvm_type, :user # Copy the exact line. I really mean :user here|
by Jonathan Rochkind, http://bibwild.wordpress.com
Capistrano automates pushing out a new version of your application to a deployment location.
I've been writing and deploying Rails apps for a while, but I avoided using Capistrano until recently. I've got a pretty simple one-host deployment, and even though everyone said Capistrano was great, every time I tried to get started I just got snowed under not being able to figure out exactly what I wanted to do, and figured I wasn't having that much trouble doing it "manually".
Installing Ruby Enterprise Edition, Apache, MySQL, and Passenger for deploying Rails 3.0 applications.
Get a Linode, and set it up with Ubuntu 10.04 LTS so that you have till April 2013 to get updates. Once the Linode is formatted, boot it and continue on.
Set up an 'A' record in your DNS, pointing to the IP of your Linode. I'm using