I finally pushed out the new reloader:
https://github.com/camping/camping/compare/e160094...342bf80
Two big features:
* camping config.ru
You can now run the Camping Server on a .ru-file. If you somehow need
a more elaborate Rack-setup (Camping.use is not enough), this means
you can still use the reloader.
* public/ is automatically served
Given this directory:
  config.ru
  app.rb
  app/controllers.rb
  public/
    camping.png
Running either `camping config.ru` or `camping app.rb` makes
camping.png available on http://localhost:3301/camping.png
Some things that are *not* supported anymore:
* camping app1.rb app2.rb
Nobody used it; it made everything more complex.
* Mounting several apps from one file
Before, if you had this file:
  # app.rb
  Camping.goes :App
  Camping.goes :App2
Running `camping app.rb` mounted App on /app and App2 on /app2.
Now, App will be mounted at /. (If you named the file app2.rb, App2
would be mounted).
If you need the previous functionality, just create a config.ru:
  map ''/app'' do run App end
  map ''/app2'' do run App2 end
This gives you more control and can be reused by other servers (Thin,
Passenger) etc.
// Magnus Holm
Nice! It''d a bit sad that you can''t serve multiple apps anymore though but you are probably most definitely right about the fact that nobody uses it! Good work! -Isak Andersson -- Skickat fr?n min Android-telefon med K-9 E-post. Urs?kta min f?ordighet. Magnus Holm <judofyr at gmail.com> skrev: I finally pushed out the new reloader: https://github.com/camping/camping/compare/e160094...342bf80 Two big features: * camping config.ru You can now run the Camping Server on a .ru-file. If you somehow need a more elaborate Rack-setup (Camping.use is not enough), this means you can still use the reloader. * public/ is automatically served Given this directory: config.ru app.rb app/controllers.rb public/ camping.png Running either `camping config.ru` or `camping app.rb` makes camping.png available on http://localhost:3301/camping.png Some things that are *not* supported anymore: * camping app1.rb app2.rb Nobody used it; it made everything more complex. * Mounting several apps from one file Before, if you had this file: # app.rb Camping.goes :App Camping.goes :App2 Running `camping app.rb` mounted App on /app and App2 on /app2. Now, App will be mounted at /. (If you named the file app2.rb, App2 would be mounted). If you need the previous functionality, just create a config.ru: map ''/app'' do run App end map ''/app2'' do run App2 end This gives you more control and can be reused by other servers (Thin, Passenger) etc. // Magnus Holm _____________________________________________ Camping-list mailing list Camping-list at rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list _____________________________________________ About Make-Up and Skin types. Get Up to 70% Off on a VIp consultation http://click.lavabit.com/bahusiqfst36twgjw31njj948r1atcxpr7mk1efj3edqj8dd81eb/ _____________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/camping-list/attachments/20120116/d73eceb7/attachment.html>