Skip to content

Commit

Permalink
Update schedule.rb
Browse files Browse the repository at this point in the history
bin/rails was having permission error
  • Loading branch information
bzbradford committed Mar 26, 2024
1 parent a202df1 commit 778596c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/schedule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

set :output, "/tmp/mailer_whenever.log"
set :env_path, '"$HOME/.rbenv/shims":"$HOME/.rbenv/bin"'
job_type :runner, %q( cd :path && PATH=:env_path:"$PATH" bin/rails runner -e :environment ':task' :output )
job_type :runner, %q( cd :path && PATH=:env_path:"$PATH" bundle exec rails runner -e :environment ':task' :output )

every :day, at: "7:00am" do
runner "Subscriber.send_daily_mail"
Expand Down

0 comments on commit 778596c

Please sign in to comment.