This commit is contained in:
Nicolas Bally 2020-02-03 10:39:45 +01:00
parent 9fca4d6608
commit 43e206bd40
2 changed files with 3 additions and 4 deletions

View File

@ -7,7 +7,7 @@ class KapsRappelItem < ActiveRecord::Base
after_create do after_create do
puts "BBBBBBBB" puts "BBBBBBBB"
GeneralMailer.new_send_qi_mail(:to => self.kaps_rappel.kap.p_customer.email, :subject => "Rappel : #{self.kapsme.name}", :body => "Rappel, la tâche \"#{self.kapsme.name}\" n'a pas été cochée aujourd'hui :( http://kaps.quartz.xyz/").deliver GeneralMailer.new_send_qi_mail(:to => self.kaps_rappel.kap.p_customer.email, :subject => "Rappel : #{self.kapsme.name}", :body => "Rappel, la tâche \"#{self.kapsme.name}\" n'a pas été cochée aujourd'hui :( <br /> http://kaps.quartz.xyz/").deliver
end end

View File

@ -42,9 +42,8 @@ default_run_options[:pty] = true
require "rvm/capistrano" require "rvm/capistrano"
require 'bundler/capistrano' require 'bundler/capistrano'
require "whenever/capistrano"
set :whenever_identifier, ->{ "#{fetch(:application)}_#{fetch(:stage)}" }
load 'deploy/assets' load 'deploy/assets'
@ -83,7 +82,7 @@ namespace :deploy do
sudo "sudo systemctl enable quartz_app@#{application}" sudo "sudo systemctl enable quartz_app@#{application}"
#run "cd #{current_path}; bundle exec whenever --update-crontab" run "cd #{current_path}; bundle exec whenever --update-crontab #{application}_production"