annotate config/preinitializer.rb @ 1628:9c5f8e24dadc live tip

Quieten this cron script
author Chris Cannam
date Tue, 25 Aug 2020 11:38:49 +0100
parents 433d4f72a19b
children
rev   line source
Chris@1115 1 begin
Chris@1115 2 require "rubygems"
Chris@1115 3 require "bundler"
Chris@1115 4 rescue LoadError
Chris@1115 5 $stderr.puts "Redmine requires Bundler. Please install it with `gem install bundler`."
Chris@1115 6 exit 1
Chris@1115 7 end
Chris@1115 8
Chris@1115 9 if Gem::Version.new(Bundler::VERSION) < Gem::Version.new("1.0.21")
Chris@1115 10 $stderr.puts "Redmine requires Bundler 1.0.21 (you're using #{Bundler::VERSION}).\nPlease install a newer version with `gem install bundler`."
Chris@1115 11 exit 1
Chris@1115 12 end
Chris@1115 13
Chris@1115 14 begin
Chris@1115 15 ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", __FILE__)
Chris@1115 16 Bundler.setup
Chris@1115 17 rescue Bundler::GemNotFound
Chris@1115 18 $stderr.puts "Some gems may need to be installed or updated.\nPlease run `bundle install --without development test`."
Chris@1115 19 exit 1
Chris@1115 20 end