Use Sinatra config in whenever
This commit is contained in:
parent
495d29a0ae
commit
54d721abd4
4 changed files with 11 additions and 9 deletions
|
|
@ -1,6 +1,6 @@
|
|||
if ENV['RACK_ENV']
|
||||
set :environment, ENV['RACK_ENV']
|
||||
end
|
||||
require_relative '../vedia'
|
||||
|
||||
set :environment_variable, 'RACK_ENV'
|
||||
|
||||
every 5.minutes do
|
||||
rake "close_expired_votes"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue