jondot / sneakers

A fast background processing framework for Ruby and RabbitMQ
https://github.com/jondot/sneakers
MIT License
2.25k stars 332 forks source link

[Question] Hot reload of code #447

Closed jlntrt closed 4 years ago

jlntrt commented 4 years ago

Hey there,

I'm working on a ruby on rails app that uses sneakers. Within a worker I use several classes that are located in the app folder which should automatically reloaded after the code changes but don't for any reason.

I searched for some information about this in the wiki but found nothing.

Can anyone of you give me a tip what I can do to not restart my docker stack for every code change in development?

Thank you! :)

michaelklishin commented 4 years ago

One option would be running with Guard or similar. I haven't tried it if there is a solution that works for Ruby processes that can fork, it should work for Sneakers.