Ah yes this is true "send(run_method" is an artifice of older versions
of Cap. You could change it to:
run "ln -nfs #{shared_path}/UPLOADS #{current_path}/public/UPLOADS")
François, You will need to use the "Before" and "After" methods to
make sure that this new task that you will make gets executed at the
right time. As Jean-Philippe said you should have it run "After"
"deploy:symlink".
Good Luck
- ian
On Thu, Mar 19, 2009 at 12:23 PM, Jean-Philippe Moal
<[email protected]> wrote:
>> On Mar 19, 8:52 am, Ian Sheridan <[email protected]> wrote:
>>> desc "create symlink"
>>> task :db, :roles => [:app] do
>>> send(run_method, "ln -nfs #{shared_path}/UPLOADS
>>> #{current_path}/public/UPLOADS")
>>> end
>
> Not sure why you are using a run_method var here, run "ln ..." also works
> fine :)
>
> Additionally you can have a :created_shared_directory(ies) with a callback on
> deploy:setup that creates the needed folders in the shared/ directory.
--
----------------------
Ian Sheridan
http://iansheridan.dyndns.org
----------------------
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---