This project is archived and is in readonly mode.
2.3 - Getting code reloading working for rails metal ?
Reported by dreamcat4 (at gmail) | June 25th, 2009 @ 11:46 PM | in 3.x
Since 2.3.2.1 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.
Resources:
There is roman's monkey-patch here http://roman.flucti.com/reloading-rails-metal-applications.
This is probably a good place to start. Also the rails-dev-boost at
http://github.com/dtrueman/rails-dev-boost/tree/master
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.
dreamcat4
Comments and changes to this ticket
-
Rohit Arondekar October 9th, 2010 @ 04:03 AM
- State changed from new to stale
- Importance changed from to
Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.
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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>