javan / javan/whenever

Deploying with Capistrano and RVM

Open
#550 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

capistrano usage-question
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.