I am learning (by doing) Rails and Capistrano.
How can I execute a scrpit inside deploy.rb?
I came across run(command)
, exec(command)
, execute:
or run:
.
I don't have to specify :db or web so I have the following backbone:
task :myTask do
on roles(:app) do
execute "bash myScript.sh"
puts "#{:server} reports: #{myTask}"
end
end
- Is this correct?
- Is the ssh part of the whole process or I have to ssh in the command?
- How do people develope
deploy.rb
withoutcap deploy
every time they make a change?
Thank you!