Forum: Rails deployment How to configuration rails upload directory in tomcat?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
F232cf4e858769b20ea6e9ee5adf12b2?d=identicon&s=25 Ray Sun (xiaoquqi)
on 2010-10-18 19:18
My basic requirement is upload and show image.
I use rails on jruby and warble package the project as war on windows.
In rails, I set my upload directory as
'#{Rails.root}/public/data/users'. And it works on common rails light
server like webrick. But after I deployed to tomcat, the 'public'
disappear. All the files under public went to the parent directory of
WEB-INF. And after the server started, the rails function can't find the
Then I tried to move my 'data' directory back to WEB-INF, but the url
doesn't work. I tried to create link in windows. But it still not works.
Can anybody suggestion some work around to do this? Thanks.
This topic is locked and can not be replied to.