From f333186ecf049b5d983e5c6269612540c73de818 Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Tue, 19 Feb 2013 10:52:30 -0800 Subject: [PATCH] Config file should be optional for easy cap deploys, fixes #715 --- lib/sidekiq/cli.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/sidekiq/cli.rb b/lib/sidekiq/cli.rb index 9f6e86c4..c963691d 100644 --- a/lib/sidekiq/cli.rb +++ b/lib/sidekiq/cli.rb @@ -317,7 +317,8 @@ module Sidekiq opts = opts.merge(opts.delete(environment) || {}) parse_queues(opts, opts.delete(:queues) || []) else - raise ArgumentError, "can't find config file #{cfile}" + # allow a non-existent config file so Sidekiq + # can be deployed by cap with just the defaults. end opts end