Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

2.3 - Getting code reloading working for rails metal ?

#2839

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

Reported by dreamcat4 (at gmail) · June 25th, 2009 @ 11:46 PM

State: stale
Milestone: 3.x
Assigned to: nobody
Importance: none

Activity

  1. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.x to 3.x

    May 4th, 2010 @ 06:48 PM

  2. Rohit Arondekar
    Rohit Arondekar
    • 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.

    October 9th, 2010 @ 04:03 AM

  3. bingbing
  4. bingbing
  5. bingbing