Questions tagged [whenever-capistrano]

34 questions
5
votes
3 answers

Capistrano and Whenever Stage Variables

On our staging server we run our Rails application in the production environment so as to be as similar as possible to our production server. We're using whenever to create our crontab. However, we need to run a slightly different rake task for our…
Jason
  • 63
  • 1
  • 5
5
votes
2 answers

Whenever Cron With Multiple Projects On Server

I use whenever in my rails apps and deploy it with capistrano. The trouble is that since I use it only for one project there's no problem, but when I use whenever for more projects on the same server, everytime I deploy my project I destroy and…
4
votes
2 answers

Whenever gem won't update crontab tasks

I have been using the whenever gem on my 2+ year old slice at Slicehost. I can't however do the same on my new slice. Main differences is that I'm now running RVM on both my MBP and the slice. I am also running Rails 3. I've got Rubygems v 1.5.0 and…
allesklar
  • 9,506
  • 6
  • 36
  • 53
4
votes
3 answers

javan-whenever not writing crontab with Capistrano deploy

I’ve been trying to get whenever running on an ec2 instance that was created with ec2 on rails. When I deploy with Capistrano it indicates that the crontab was written, but when I log into the server and run crontab -l it does not seem to have been…
Gordon Isnor
  • 2,065
  • 1
  • 19
  • 32
3
votes
2 answers

Rails Capistrano - Whenever Cron appends cron jobs for every Deployment

I am using: Ruby 1.9.3 whenever 0.9.4 Rails 3.2 and capistrano/whenever extension. Whenever the deployment happens, it adds entries to the crontab file after each deployment. Since 5 deployments, there are 40 entries in crontab -l, as…
Sid
  • 4,893
  • 14
  • 55
  • 110
3
votes
1 answer

Cron job every day from 8AM to 8PM at 20 minutes interval

How to run cron job every day from 8:00 AM to 8:00 PM at 20 minutes interval eg cron job should start at 8:00 AM every day, then run at 8:20 AM then 8:40 AM then 9:00 AM up to 8:00 PM. Thanks. EDIT: How to Implement it with ruby whenever gem.
Braham Shakti
  • 1,408
  • 4
  • 22
  • 39
3
votes
2 answers

Whenever gem is not executing task

I set up a rails project to use the Whenever gem. Now I deploy my project with Capistrano and the tasks are nicely added to crontab list. But when I see only one line: /bin/bash: bundle: command not found So I read a couple of articles online so I…
Niels
  • 599
  • 5
  • 28
3
votes
1 answer

Rails whenever gem giving error when deploying via capistrano

I'm trying to create my first cron job via the whenever gem for a rails project. When running cap deploy, i get this error: ... * 2013-01-01 22:29:00 executing `whenever:update_crontab' * executing "cd…
Catfish
  • 18,876
  • 54
  • 209
  • 353
2
votes
2 answers

bundler: not executable: bin/rails in rails production while using whenever gem

I'm using whenever gem for cronjobs in rails application - production. I'm getting an error bundler: not executable: bin/rails scheduler.rb every 15.minute do runner 'TestJob.perform_later()' end crontab 0,15,30,45 * * * * /bin/bash -l -c 'cd…
Abhishek Aravindan
  • 1,432
  • 6
  • 23
2
votes
1 answer

whenever/capistrano `method_missing_with_variables': undefined method `role_names_for_host'

I'm using whenever/capistrano to update my cron_tab when deploying with capistrano, it was working great until recently my deploys started to fail when updating the…
Martinffx
  • 2,426
  • 4
  • 33
  • 60
1
vote
1 answer

Deploying with capistrano 3 and whenever gem

I'm trying to deploy my app with whenever gem using capistrano 3. I added: require "whenever/capistrano" to Capfile, and: set :whenever_identifier, ->{ "#{fetch(:application)}_#{fetch(:stage)}" } to config/deploy.rb. When I deploy it I get an…
1
vote
1 answer

Unable to deploy via capistrano using whenever gem

I'm trying to deploy a Ruby on Rails application using Capistraino. I have a job that I schedule using Whenever but I keep getting errors when trying to deploy. error with config deploy.rb below SSHKit::Runner::ExecuteError: Exception while…
Antarr Byrd
  • 24,863
  • 33
  • 100
  • 188
1
vote
1 answer

Rails scheduled task behind a load balancer

I was wondering how to properly schedule a task for a rails application that sits behind an elastic load balancer. This task is an automated weekly email that is to be sent out every Monday from the application. We currently have multiple EC2…
1
vote
2 answers

Whenever give ``require': cannot load such file -- bundler/setup` error in production server

Im trying to setup whenever gem in my Ubuntu 14.04 server. In my local machine it works fine. I use capistrano to deploy the site. I use rbenv in the server. But when installing passenger it installs Ruby 1.9 which I do not use. Only use rbenv.…
THpubs
  • 7,804
  • 16
  • 68
  • 143
1
vote
1 answer

Rails gems not installed in production ( whenever )

I'm deploying a rails app with capistrano but get the error that whenever isn't installed DEBUG [36f4c99a] bundler: command not found: whenever DEBUG [36f4c99a] Install missing gem executables with `bundle install` cap…
1
2 3