Warbler: Where are my images

Posted by user108031 on Stack Overflow See other posts from Stack Overflow or by user108031
Published on 2009-07-27T23:22:16Z Indexed on 2010/03/18 2:01 UTC
Read the original article Hit count: 369

Filed under:
|
|

I'm using Jruby and Warbler to deploy a Jruby on Rails application to a Tomcat server. I can see all of my images when I deploy the server with Webrick: jruby -S server/script. However, when I create a .war file out of the rails directory using jruby -S warble and deploy to Tomcat, none of my images show up on the tomcat server. I noticed that image location has changed to the root of the directory in the war file.

It seems that /images/picturename.jpg would be appropriate, but my images are not showing up.

© Stack Overflow or respective owner

Related posts about jruby

Related posts about ruby-on-rails