750 Experience
0 Lessons Completed
1 Question Solved


Posted in How do i run sneaker worker in rails 6.0 ,ruby '2.6.3' ?

we have to add these lines in application.rb

config.load_defaults "6.0"
config.active_job.queue_adapter = :sneakers

Posted in How do i run sneaker worker in rails 6.0 ,ruby '2.6.3' ?

I'm trying to run rails app using command foreman s

the ProcFile contains these 2 lines :
web: bundle exec passenger start -p 8000 --max-pool-size 1
sneaker_data_publisher: WORKERS=DataPublisher bundle exec rake sneakers:run
The server starts fine. But it cannot execute the sneaker:run command.

16:18:01 sneaker_data_publisher.1 | rake aborted!
16:18:01 sneaker_data_publisher.1 | Don't know how to build task 'sneakers:run' (See the list of available tasks with rake --tasks)

Any help or guidance towards the same will be much appreciated

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2021 GoRails, LLC. All rights reserved.