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 <judo...@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@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/
_____________________________________________

_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to