Fix environment variables loading when running whenever

This commit is contained in:
Adrien Chauve
2021-12-01 18:34:39 +01:00
parent 051950e04c
commit abf1b54364

View File

@@ -1,3 +1,6 @@
# Force manual loading of rails application to get all env variables from dotenv-rails when running whenever cmd
require File.expand_path('../environment', __FILE__)
require 'whenever'
require 'yaml'