- Changes for fcgi configuration in public/.htaccess
- Comment the fcgi handler (found in initial few lines of the file)
- Change the dispatch.cgi reference to dispatch.fcgi (last few lines of file)
- In public/dispatch.fcgi change the shebang line to say something like this
- #!/usr/bin/env ruby
- Make sure everything is committed. (svn ci)
- capify the environment (capify)
- run rake configure_for_svn (assuming that the svn.rake task has been created already)
- edit config/deploy.rb to adjust values appropriately
- run cap deploy:setup
- On the remote server, copy $HOME/railsapps/config/database.yml.production to $HOME/${appdir}/shared/config (create target dir if not present). The $HOME/{appdir} should have been created by deploy:setup
- Since its the first time deployment, run cap deploy:cold
- Next time onwards, when you have to deploy, launch cap deploy:migrate
Friday, March 28, 2008
config for capistrano
Preparing a deployment of an app
Labels:
capistrano,
Rails
Subscribe to:
Post Comments (Atom)
I like this article very much because it is technical and very much useful for me to gather more knowledge. Good to read...
ReplyDelete