Open apellizzn opened 7 years ago
I had to work around this by manually setting the path environment variables at the top of the schedule file instead of your ENV.each loop, particularly with my :PATH variable:
env :PATH, ENV['PATH']
In lib/whenever/setup.rb line 5 it states that:
Path defaults to the directory
whenever
was run from
I spent countless hours figuring this out for my project. If there is a better solution I would be glad to make a PR.
Any update with this?
I ran into a similar problem and fixed it by declaring the :whenever_path inside deploy.rb
set :whenever_path, -> { release_path }
I'am trying to run a simple cron task in my local machine. My
schedule.rb
is the followingBy executing
whenever --update-crontab --set environment=development
The cron output results in
and the
cron_log.log
saysAfter looking for a solution i found that RVM may cause some issues so i've updated my
schedule.rb
likeBut now the log output is
Even if the
rvm current
output in my project folder isruby-2.4.0
.Any suggestions?