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
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list