Jona,
You can have a task like this:

task :run_my_rake_task, :roles => :app do
    run("cd #{current_path}; rake my:task")
end


Hope this helps!

- Lee

2009/4/27 Hunt Jon <[email protected]>

>
> I'm developing Rails apps. Sometimes I run rake tasks in the production
> server.
>
> Currently I ssh into the server
> , and go to "current" directory
> , and run the rake task.
>
> Is there any way to use Capistrano for there tasks?
>
> Jona.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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