Deploying with Capistrano and RVM
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 8.9k
- Forks
- 715
- PR merge metrics
- No merged PRs in 30d
Description
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 ?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with config/schedule.rb and inspect how capistrano/rvm or capistrano/bundle obtains per-server bundle paths. Determine whether the schedule can consume that deployment information, and verify the rake job uses the correct path on each server.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100