It's hard to guess what the issue with Camping is without a little more detail.

You could achieve the same result by having Rack serve the static files, and skip Camping altogether. Something like this in your

require 'app'
use Rack::Static, :urls => ['/static', ], :root => 'parent-of-static'

Hope this helps,

On 3/23/15 6:40 AM, Sebastjan Hribar wrote:

I have a problem with serving static files in my app.
I use the code as shown here (
I had to remove the @ sign for FILE to make it work.

For now I'm only serving one background image:
#index_main {
  background-size: cover;
  background-image: url("static/slika2.jpg")

When I do this in my windows running from command line the image is served.

When I do this in windows server 2008 running as a service, the image is not shown and if I try accessing it like <<address>>:3301/static/slika2.jpg I get this error:

Camping Problem!
/static/slika2.jpg not found

I'm using <> like so:
   $LOAD_PATH << File.expand_path('..')
   require './<<app_name>>'
   run <<app_name>>
Should I add anything for the static files in <> as well?

I use thin as the server.

thank you!

Camping-list mailing list

Camping-list mailing list

Reply via email to