Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ceb22fd

Browse files
authoredDec 26, 2024··
Merge branch 'main' into fix-readme-redaction
2 parents 9d345a8 + 6e4a31e commit ceb22fd

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed
 

‎README.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -98,19 +98,24 @@ Next, add the following to `development.rb`
9898
```ruby
9999
# Use Solid Queue in Development.
100100
config.active_job.queue_adapter = :solid_queue
101-
config.solid_queue.connects_to = {database: {writing: :queue}}
101+
config.solid_queue.connects_to = { database: { writing: :queue } }
102102
```
103103

104104
Once you've added this, run `db:prepare` to create the Solid Queue database and load the schema.
105105

106-
Finally, in order for jobs to be processed, you'll need to have Solid Queue running. In Development, this can be done via the Puma plugin. In `puma.rb` update the following line:
106+
Finally, in order for jobs to be processed, you'll need to have Solid Queue running. In Development, this can be done via [the Puma plugin](#puma-plugin) as well. In `puma.rb` update the following line:
107107

108108
```ruby
109109
# You can either set the env var, or check for development
110110
plugin :solid_queue if ENV["SOLID_QUEUE_IN_PUMA"] || Rails.env.development?
111111
```
112112

113-
**Import Note about Action Cable**: If you use Action Cable (or anything dependent on Action Cable, such as Turbo Streams), you will also need to update it to use a database.
113+
You can also just use `bin/jobs`, but in this case you might want to [set a different logger for Solid Queue](#other-configuration-settings) because the default logger will log to `log/development.log` and you won't see anything when you run `bin/jobs`. For example:
114+
```ruby
115+
config.solid_queue.logger = ActiveSupport::Logger.new(STDOUT)
116+
```
117+
118+
**Note about Action Cable**: If you use Action Cable (or anything dependent on Action Cable, such as Turbo Streams), you will also need to update it to use a database.
114119

115120
In `config/cable.yml`
116121

@@ -503,7 +508,7 @@ If you're using Puma in development but you don't want to use Solid Queue in dev
503508
```ruby
504509
plugin :solid_queue if ENV["SOLID_QUEUE_IN_PUMA"]
505510
```
506-
that you set in production only. This is what Rails 8's default Puma config looks like. Otherwise, if you're using Puma in development but not Solid Queue, starting Pumna would start also Solid Queue supervisor and it'll most likely fail because it won't be properly configured.
511+
that you set in production only. This is what Rails 8's default Puma config looks like. Otherwise, if you're using Puma in development but not Solid Queue, starting Puma would start also Solid Queue supervisor and it'll most likely fail because it won't be properly configured.
507512

508513

509514
## Jobs and transactional integrity

0 commit comments

Comments
 (0)
Please sign in to comment.