Use Sinatra config in whenever
This commit is contained in:
parent
495d29a0ae
commit
54d721abd4
4 changed files with 11 additions and 9 deletions
6
vedia.rb
6
vedia.rb
|
|
@ -1,10 +1,4 @@
|
|||
require 'sinatra'
|
||||
|
||||
# Set environment before requiring 'sinatra/activerecord' to make `whenever` uses the database.
|
||||
if ENV['RAILS_ENV']
|
||||
set :environment, ENV['RAILS_ENV']
|
||||
end
|
||||
|
||||
require 'sinatra/activerecord'
|
||||
require 'bcrypt'
|
||||
require 'gettext'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue