whenever
whenever copied to clipboard
Deploying with Capistrano and RVM
Hi everybody
I have an issue using whenever, Capistrano and RVM. I have an application, deployed in several servers, which having different paths for bundle
. Every schedule command is a rake
.
Here is my config/schedule.rb
# bundle path for server 1, different in server 2
@bundle_path = '~/.rvm/wrappers/ruby-2.1.2@my_app/bundle'
job_type :rake, "cd :path && :environment_variable=:environment #{@bundle_path} exec rake :task --silent :output"
every 10.minutes do
rake 'my_app:do_some_job'
end
I have no idea how to find the bundle
path for each server. capistrano/rvm
or capistrano/bundle
has the right information, but I don't know how it knows it and how to pass it to my schecule.
Any idea ?