This project is archived and is in readonly mode.

#2839 ✓stale
dreamcat4 (at gmail)

2.3 - Getting code reloading working for rails metal ?

Reported by dreamcat4 (at gmail) | June 25th, 2009 @ 11:46 PM | in 3.x

Since have been trying out various methods to get sinatra embedded in app/metal to reload when the file is changed. As far as i can tell (please correct me), but the rack middleware in app/metal is never checked or reloaded by rails (development mode).

An alternative there is the rerun gem. However although rerun will detect any changed .rb file in app/metal, it will restart all of rails. Code reloading in rack is reportedly a complex issue however getting it working for metal might be a worthwhile for rails 2-3-branch. If we could get a way to reload only the affected middlewares, and not the whole of rails stack that would be awesome and a real time saver.

There is roman's monkey-patch here This is probably a good place to start. Also the rails-dev-boost at might be a good place to try things out. I've yet to look at the code on this, just touching base here. If you are indeed affected by these reloading issues then please add a +1 here.


Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>