lib/rocket_job/cli.rb in rocketjob-0.7.0 vs lib/rocket_job/cli.rb in rocketjob-0.8.0
- old
+ new
@@ -16,10 +16,10 @@
end
# Run a RocketJob::Server from the command line
def run
SemanticLogger.add_appender(STDOUT, &SemanticLogger::Appender::Base.colorized_formatter) unless quiet
- boot_rails
+ boot_rails if defined?(:Rails)
write_pidfile
opts = {}
opts[:name] = name if name
opts[:max_threads] = threads if threads