Welcome Guest | Login

Is capistrano magic?

Hi there,

I've happily deployed my rails app using the basic fastcgi tutorial here:http://www.hostingrails.com/forums/wiki_thread/1

Of course now I want to use capistrano and have been following the thread here:http://www.hostingrails.com/forums/wiki_thread/46

My question is: what has happened to the "extra" parts in the first tutorial that aren't in the second?  Specifically:
* Create "online versions" of your environment.rb and database.yml files and then remove the ".online" part once deployed.
* The business with the .htaccess file

How can I get capistrano to do these things?  Or does using cap remove the need?

Thanks!

2008-07-23 09:14 AM

Hi Goldy,

> Create "online versions" of your environment.rb and database.yml files and then remove the ".online" part once deployed.

If you are deploying capistrano for the first time then you need to configure the database.yml and environment.rb . You need to configure the database.yml for the production environment and uncomment

ENV['RAILS_ENV'] ||= 'production'  line in the environment.rb

Once you have successfully deployed capistrano, No need to worry about changing the environment.rb and database.yml because the checked out versions will contain the updated configuration

> The business with the .htaccess file

For the initial deployment you need to change the .htaccess . Changes should be made as per the fastcgi deployment tutorials

2008-07-23 10:46 AM

Regards,
Rahul
Thanks Rahul.  Make sense.  I guess I'll just not check-in my local versions of those yaml files.

2008-07-23 07:16 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.