javan / javan/whenever

When deploying with capistrano3 Could not locate Gemfile or .bundle/ directory

Open
#762 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
8.9k
Forks
715
PR merge metrics
No merged PRs in 30d

Description

command: cap production whenever:clear_crontab
The log shows:
Command: cd && ( export RAILS_ENV="production" ; ~/.rvm/bin/rvm ruby-2.3.0@rails_gem do bundle exec whenever --clear-crontab rails_gem )
Could not locate Gemfile or .bundle/ directory

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 the reported cap production whenever:clear_crontab command and compare its logged working directory and Bundler/RVM invocation with the deployment configuration. Reproduce the failure and trace why bundle exec whenever --clear-crontab cannot locate the Gemfile; done means the task runs successfully in the Capistrano production deployment.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.