chris escribió:
> I added the following line to the deploy file, but it is failing.  I
> created the symlink on the server to test if it works and it does, but
> when the same command is called by cap it fails.
>
> To be honest I don't know if where the ln command was inserted is the
> proper location or not, but it looked like it should work.  I was
> unsure of the cap var names ex. shared_path etc, which is why the full
> path is listed.
>
> namespace :localize do
>   desc "copy shared configurations to current"
>   task :copy_shared_configurations, :roles => [:app] do
>     ...
>     run "ln -fs /var/rails/portfolio/shared/uploads/projects/ /var/
> rails/portfolio/current/public/projects/"
>   end
> end
>
>
> Thanks for the help
>
>
> >
>
>   
More or less you want do it:

 run "ln -nfs #{shared_path}/upload #{current_path}/public/"

Variables useful for it:
    - shared_path
    - current_path
    - release_path


Regards!

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

begin:vcard
fn;quoted-printable:Rafael Garc=C3=ADa Ortega
n;quoted-printable:Garc=C3=ADa Ortega;Rafael
org:ASPgems S.L.
email;internet:[EMAIL PROTECTED]
tel;work:692686533
x-mozilla-html:FALSE
url:http://www.aspgems.com
version:2.1
end:vcard

Reply via email to