[英]jruby on rails app and warbler, tomcat, windows
I have a JRuby Rails app. 我有一个JRuby Rails应用程序。 It runs with "rails s app" .
它与“ rails的应用程序”一起运行。 With warbler I have built a war-file and integrated it with the tomcat.
使用莺莺,我构建了一个战争文件并将其与tomcat集成在一起。 The app starts, but then I get an error message:
该应用程序启动,但随后出现错误消息:
"We're sorry, but something went wrong."
“我们很抱歉,但有些不对劲。”
In the log file, the following is displayed: 在日志文件中,显示以下内容:
"INFO: F, [2016-12-14T11: 06: 40.187000 # 124] FATAL -:
“ INFO:F,[2016-12-14T11:06:40.187000#124]致命-:
ActionView :: Template :: Error (undefined: SyntaxError: Unexpected token: eof (undefined)):ActionView ::模板::错误(未定义:SyntaxError:意外令牌:eof(未定义)):
7:7:
8: .row8:.row
9: .col-md-69:.col-md-6
10: = image_tag 'leaman_ir_doc.png', style: "width: 100%, border: 2px solid gray;"10:= image_tag'leaman_ir_doc.png',样式:“宽度:100%,边框:2px纯灰色;”
11: App / views / home / index.html.haml: 10: in `_app_views_home_index_html_haml__819972750_6656 '"11:应用程序/视图/首页/index.html.haml:10:在“ _app_views_home_index_html_haml__819972750_6656'中”
I do not know where the SyntaxError comes from !? 我不知道SyntaxError来自哪里?
The error means that the images and stylsheets are not found. 该错误意味着找不到图像和样式表。 If I leave in the development.rb or production.rb under config following entry away, then runs the application error-free:
如果我在进入后仍保留在config下的development.rb或production.rb,则可以无错误地运行该应用程序:
Config.assets.js_compressor =: uglifier Config.assets.js_compressor =:uglifier
Does anyone know why with this setting the images and stylsheets are no longer found and what I can do about it? 有谁知道为什么用这种设置不再能找到图像和样式表,我该怎么办?
Thanks for any answer :-) 谢谢你的回答:-)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.