On Sun, Nov 2, 2008 at 1:07 PM, Peter Booth <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I am using the multistage feature in capistrano-ext to deploy four
> application to six or seven stages. I use a standardized directory
> structure for all applications and use conditional logic  in deploy.rb
> and the stage specific files in /deploy to ensure app-specific
> behavior. I'd like to extend this to also use   Capistrano to deploy
> nginx configuration files and static data that is currently stored
> within [application]/public
>
> Does anyone have experience of doing such a thing, ideally in a
> fashion where application-stage-host mappings are centralized so they
> can easily be viewed?

I did something sounding similar the other day. I wanted to have
deploy:cold go ahead and symlink into /etc/mongrel_cluster from the
./app/current/config/{#rails_env}.cluster.yml  location. I did the
same thing for enabling the apache config using "a2ensite
#{app_domain}" in conjunction with :before_cold call in the :deploy
namespace.




> Has anyone sucessfully deployed an application excluding a svn
> subdirectory?

I do an svn export locally and copy the tgz file to the server.
(export would not include .svn directories).
There also is a pre-defined variable to exclude that path as well
set :copy_exclude, ['.svn']



> I have static files that are much larger than the rest of my
> application and I would like to avoid having five minute deploys.

Look into a :before_symlink command that will copy uploaded files (ie:
avatars, user images, etc) into the ./app/shared/ folder.

-- 
Anthony Ettinger
408-656-2473
http://anthony.ettinger.name

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to