rails / solid_queue

Database-backed Active Job backend
MIT License
1.88k stars 121 forks source link

Install command failed in Rails 7.0 #363

Closed masterT closed 4 weeks ago

masterT commented 4 weeks ago

Running the install steps failed in Rails 7.0 application.

bin/rails solid_queue:install
rails aborted!
Don't know how to build task 'solid_queue:install' (See the list of available tasks with `rails --tasks`)
Did you mean?  solid_queue:start

(See full trace by running task with --trace)

I think the correct command is bin/rails generate solid_queue:install has it's a generator:

bin/rails generate -h
Usage: rails generate GENERATOR [args] [options]

General options:
  -h, [--help]     # Print generator's options and usage
  -p, [--pretend]  # Run but do not make any changes
  -f, [--force]    # Overwrite files that already exist
  -s, [--skip]     # Skip files that already exist
  -q, [--quiet]    # Suppress status output

Please choose a generator below.

[...]

SolidQueue:
  solid_queue:install
rosa commented 4 weeks ago

Hey @masterT, what version of Solid Queue are you trying this with?

masterT commented 4 weeks ago

Hum, I followed the instruction bundle add solid_queue, I did not realise that since my application is using rails '~> 7.0.8.4' bundler installed gem 'solid_queue', '~> 0.1.2'.

masterT commented 4 weeks ago

I tested and used rails solid_queue:install with a brand new rails >= 7.1 and it worked. I guess I will need to upgrade my Rails application 🙃.

rosa commented 4 weeks ago

Ahh, great to know! 🙏 Yes, solid_queue requires Rails >= 7.1, and the command solid_queue:install was added in a newer version.