Senior & Expert RoR Developers Discussion Forum by Nyros Technologies

HIRE Ruby on Rails Expert Developers Programmers Coders From India
Ruby on Rails PHP .Net Developers Community, Nyros Technologies, Kakinada
 
Log in  or IF not a member please REGISTER
Username:
Password:   


Keyword
Log in | Profile 

Capistrano in Ruby On Rails

 
Post new topic   Reply to topic    Senior & Expert RoR Developers Discussion Forum by Nyros Technologies Index -> In & Arround Ruby on Rails
View previous topic :: View next topic  
Author Message
mbchowdari



Joined: 08 May 2008
Posts: 52

PostPosted: Wed Jun 03, 2009 2:53 pm    Post subject: Capistrano in Ruby On Rails Reply with quote

Capistrano is a utility that was created in order to reliably and
repeatable deploy Rails applications on remote servers. It uses SSH to communicate with the servers and execute commands on them. It is a wildly configurable tool, however, for simple deployments, it is straightforward to use. It’s somewhat like a turbocharged version of Rake in that Capistrano recipes are composed of a set of tasks to be performed. In Capistrano, however, tasks are set up with methods that will cause actions to happen on one or more remote servers.

Capistrano is opinionated software... it makes a few assumptions. The first is that you are deploying to a Unix-based system. The second is that your code is held in a repository that is accessible from both the machine you are deploying from and the machine to which you are deploying.



Setting Up a Deployment Environment:

setting up a recommended environment using the Apache web server with mod_proxy_balancer, Mongrel, and MySQL.



Step 1: Setting Up a Machine

your first job should be cleaning it up so that it’s ready. If it’s a PC, make sure it’s running the latest version of Linux.The next step is to install the various software components you need. The items you’ll need to install are

• The Apache 2.2 (or latest released version) web server
• MySQL 5.0 (or latest released version) database server
• Ruby 1.8.4 or later
• RubyGems to manage Ruby-based packages
• MySQL/Ruby library
• Ruby Termios Library (not on Windows)

.

Step 2: Setting Up Your Database

Once you have MySQL up and running on your server, you’ll need to do the following.

# On your database server
$ mysql -u root -p
Enter password: ********
Welcome to the MySQL monitor. Commands end with ; or \g.

Deploy.rb
--------------

Other informations can be changed as is :
role :app, “yourdomain.com”
role :web, “yourdomain.com”
role :db, “yourdomain.com”

In Optional settings uncomment the lines :
set :deploy_to, “/home/username/application_name”
set :user, “username”

Important commands:
----------------------------

1) cap deploy:setup
2) cap deploy:check
3) cap deploy:update
4) cap deploy:start



Thank You,
Back to top
View user's profile Send private message Send e-mail
satya



Joined: 08 May 2008
Posts: 78

PostPosted: Sat Jun 06, 2009 5:10 am    Post subject: Reply with quote

Good Work


Rating : 4
Back to top
View user's profile Send private message
sharma I



Joined: 13 Jun 2008
Posts: 130

PostPosted: Sat Jun 06, 2009 5:17 am    Post subject: Reply with quote

Nice Post

Rating : 3.5
Back to top
View user's profile Send private message
vijay



Joined: 08 May 2008
Posts: 63

PostPosted: Mon Jun 08, 2009 4:31 am    Post subject: Reply with quote

Nice post.

Rating : 2.5
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Senior & Expert RoR Developers Discussion Forum by Nyros Technologies Index -> In & Arround Ruby on Rails
Page 1 of 1

 latest topics 
 Topics   Replies   Author   Views   Last Post 
No new posts validates_multiparameter_assignments plugin usage:
0 vijayalakshmi 27 Wed Jul 28, 2010 4:24 am
vijayalakshmi View latest post
No new posts paperclip plugin usage in rails:
0 vijayalakshmi 23 Wed Jul 28, 2010 4:07 am
vijayalakshmi View latest post
No new posts Polymorphism
1 phani.galla 46 Tue Jul 27, 2010 3:27 pm
umamahesh_nyros View latest post
No new posts Deploying Ruby on Rails Application with Passenger
2 sivakrishna.m 630 Tue Jul 27, 2010 2:16 pm
criether View latest post
No new posts Steps to implement star-rating using acts_as_rateable plugin
0 vijayalakshmi 46 Mon Jul 26, 2010 5:47 am
vijayalakshmi View latest post
No new posts Twitter Retweet Integartion
0 Anu 41 Thu Jul 22, 2010 12:27 pm
Anu View latest post
No new posts Usage of build method in rails
0 ktulasi 30 Thu Jul 22, 2010 12:19 pm
ktulasi View latest post
No new posts Facebook Like Integration in Rails
0 Anu 53 Thu Jul 22, 2010 12:16 pm
Anu View latest post
No new posts Fshare in your Rails Application.
0 Anu 39 Thu Jul 22, 2010 12:10 pm
Anu View latest post
No new posts Installation of Postgresql in windows.
1 swaminadhan 198 Thu Jul 15, 2010 10:17 am
proximity3 View latest post




Hire an expert Ruby on Rails developer / coder / programmer or development team from India now!!

Other Forums : PHP   ::   .Net   |   Free unlimited HTML CSS templates download

Nyros Technologies   |   Kakinada City Portal   |   Developers Blog   |   About Ruby on Rails Experts   |   More