Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rails solid_queue:install:migrations is not a valid command #419

Open
Juksefantomet opened this issue Nov 19, 2024 · 0 comments
Open

rails solid_queue:install:migrations is not a valid command #419

Juksefantomet opened this issue Nov 19, 2024 · 0 comments

Comments

@Juksefantomet
Copy link

Running rails solid_queue:install:migrations is not a valid command.

juksefantomet@UBERJUKSE:~/git_projects/staff_pulse_check$ rails solid_queue:install:migrations
Unrecognized command "solid_queue:install:migrations" (Rails::Command::UnrecognizedCommandError)
Did you mean?  solid_queue:install
juksefantomet@UBERJUKSE:~/git_projects/staff_pulse_check$ rails solid_queue:install
   identical  config/queue.yml
   identical  config/recurring.yml
    conflict  db/queue_schema.rb
Overwrite /home/juksefantomet/git_projects/staff_pulse_check/db/queue_schema.rb? (enter "h" for help) [Ynaqdhm] y
       force  db/queue_schema.rb
   identical  bin/jobs
        gsub  config/environments/production.rb

Running rails solid_queue:install works - BUT - if ran repeatedly it adds more entries to config/environments/production.rb

juksefantomet@UBERJUKSE:~/git_projects/staff_pulse_check$ cat config/environments/production.rb

.....previous
 # Don't log any deprecations.
  config.active_support.report_deprecations = false

  # Replace the default in-process memory cache store with a durable alternative.
  config.cache_store = :solid_cache_store

  # Replace the default in-process and non-durable queuing backend for Active Job.
  config.active_job.queue_adapter = :solid_queue
  config.solid_queue.connects_to = { database: { writing: :queue } }

  config.solid_queue.connects_to = { database: { writing: :queue } }

  config.solid_queue.connects_to = { database: { writing: :queue } }

  config.solid_queue.connects_to = { database: { writing: :queue } }


  # Ignore bad email addresses and do not raise email delivery errors.
  # Set this to true and configure the email server for immediate delivery to raise delivery errors.
  # config.action_mailer.raise_delivery_errors = false
....continues

so you'll end up with multiple declarations 😄

rails: 8.0.0
ruby: 3.3.6
ubuntu/WSL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant