Deploy Application with Capistrano 2.XX.X + ruby on rails + git

1. Open Gemfile file 2. Add gem ‘cpistrano’, ‘2.15.5’ in you Gemfile 3. Add gem ‘capistrano-ext’, ‘1.2.1’ if deployment need on multiple server. 4. Alt+Ctrl+t open terminal, go to project path 5. $bundle install, Wait until ‘bundle complete successfully’ message

Storing Sessions in the Database

We generally use cookie based session storage technique.Storing sessions in the database in however very important. Rails provide an built-in feature using rake to create session table . Create Migration $ rake db:sessions:create The above command will create the migration