Skip to content

Commit

Permalink
Add info about setting up rake tasks in Rails 5 to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
corincerami committed Feb 20, 2017
1 parent f8fc9f8 commit 305fa94
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ We plan to provide first class `async` support in a future release.

If a job raises an exception, it is logged and handed off to the
`Resque::Failure` module. Failures are logged either locally in Redis
or using some different backend. To see exceptions while developing,
or using some different backend. To see exceptions while developing,
use VERBOSE env variable, see details below under Logging.

For example, Resque ships with Airbrake support. To configure it, put
Expand Down Expand Up @@ -634,6 +634,13 @@ require 'your/app'
require 'resque/tasks'
```

If you're using Rails 5.x, include the following in lib/tasks/resque.rb:

```ruby
require 'resque/tasks'
task 'resque:setup' => :environment
```

Now:

$ QUEUE=* rake resque:work
Expand Down

0 comments on commit 305fa94

Please sign in to comment.