如果 Rails 3 被捆绑为战争,它的公共文件在哪里保存?
运行 tomcat,我有这个文件夹层次结构:
- manager/
- ROOT/
- doc
- docs
- images
- javascripts
- META-INF
- stylesheets
- WEB-INF
- app
- config
- ..rails root here?
- public
- docs
- stylesheets
- system
- ROOT.war
我对两个公共文件夹感到困惑,它们都有适当的文件。这只是一个简单的问题,我只是需要很长时间才能通过打印路径进行调试(因为我不知道如何在战争文件中使用调试器)
Running tomcat, i have this folder hierarchy:
- manager/
- ROOT/
- doc
- docs
- images
- javascripts
- META-INF
- stylesheets
- WEB-INF
- app
- config
- ..rails root here?
- public
- docs
- stylesheets
- system
- ROOT.war
Im confused at the two public folders and they both have appropriate files in them. This is just a quick question, it just takes a long time for me to debug by printing out the path(since I don't know how to use the debugger while in a war file)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Tomcat 提供的文件与 WEB-INF 和 META-INF 文件夹处于同一级别,即:立即在 ROOT 下。这就是 Java EE 规范的工作方式,文件在部署时以这种方式复制,公共文件夹保留为 Rails 中通常的痕迹。
The files that Tomcat serves are the ones on the same level as the WEB-INF and META-INF folders, ie. immediately under ROOT. That's how Java EE spec works, and files are copied that way at deploy, the public folder remaining as a vestige from how is usually in Rails.