How to add META-INF/context.xml in Warbler

来源:互联网 发布:上海行知中学校服 编辑:程序博客网 时间:2024/06/04 18:37

original link

http://stackoverflow.com/questions/5337010/how-to-add-meta-inf-context-xml-in-warbler

 

I finally figure out a way to copy context.xml to META-INF:

  1. create META-INF/context.xml under your rails app root folder
  2. uncomment and change the following line in config/warble.rb

    config.public_html = FileList["public/**/*", "doc/**/*", "META-INF/context.xml" ]

Basically treat META-INF as public_html, and it will be copied to webapps/youapp/META-INF.

原创粉丝点击