1
0

pre_runner_boot.rb 300 B

12345678910111213
  1. unless defined?(Rails)
  2. puts
  3. puts "Please run me with rails runner, for example:"
  4. puts " RAILS_ENV=production bundle exec rails runner bin/#{File.basename($0)}"
  5. puts
  6. exit 1
  7. end
  8. Rails.configuration.cache_classes = true
  9. Dotenv.load if ENV['APP_SECRET_TOKEN'].blank?
  10. require 'agent_runner'