DISQUS

auxesis' musings: Odd behavior when serving static content with Merb

  • Yehuda Katz · 1 year ago
    @lindsay this was a change in Merb 0.9.3. However, old apps (generated with the 0.9.2 generator) had the old version of boot.rb that wasn't compatible. The best thing to do is copy out the boot.rb from a freshly generated app.
  • auxesis · 1 year ago
    @katz: thanks for the pointer! I couldn't find any explanation on the cause of the problem, but that makes a lot of sense.
  • James · 1 year ago
    Why are these static rb files not in a library somewhere?
  • auxesis · 1 year ago
    They're generated when you create a new app with merb-gen. Every app has its own scripts for bootstrapping.

    I had previously generated the app with 0.9.2 and then upgraded it manually. Documentation is pretty scarce, and there wasn't any mention of the boot.rb fix.

    Remember, Merb is pre-1.0!
  • grempe · 1 year ago
    I think you mean 'rack.rb' and not 'boot.rb'. Copying a newly generated rack.rb into mis-behaving app solves the problem. Thanks for helping me solve this. :-)
  • Lindsay Holmwood · 1 year ago
    @grempe: yeah, that's right, I mean rack.rb :-) (although katz refers to boot.rb, so eh)