use explicit autoloads rather than from paths

This commit is contained in:
Adam Cooke
2017-06-02 15:29:54 +01:00
parent 9f4568e81a
commit 6e009f16b9
9 changed files with 87 additions and 8 deletions
-5
View File
@@ -1,10 +1,5 @@
namespace :postal do
desc "Start the backend job worker"
task :worker => :environment do
Postal::Worker.new([:main]).work
end
desc "Start the cron worker"
task :cron => :environment do
require 'clockwork'