When deploying with capistrano3 Could not locate Gemfile or .bundle/ directory
Open
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
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 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