Deploying Vaadin App in Openshift

给你一囗甜甜゛ 提交于 2019-12-11 05:29:12

问题


I just created my first Vaadin application. The application works fine on my local server.

I want to upload this app to Openshift.

I followed the instructions here: https://www.openshift.com/kb/kb-e1088-how-to-deploy-pre-compiled-java-applications-war-and-ear-files-onto-your-openshift-gear

The app has been uploaded, but the only thing that is displayed is text. No panels or CSS or anything.

Does anyone have any idea why this is happening?

Thank you!

Console:

Jul 01, 2014 8:39:50 AM com.vaadin.server.VaadinServlet serveOnTheFlyCompiledScss

WARNING: Scss file VAADIN/themes/test/styles.scss exists but ScssStylesheet was
not able to find it

Jul 01, 2014 8:39:50 AM com.vaadin.server.VaadinServlet serveStaticResourcesInVAADIN

INFO: Requested resource [/VAADIN/themes/test/styles.css] not found from filesystem 
or through class loader. Add widgetset and/or theme JAR to your classpath or
add files to WebContent/VAADIN folder.

回答1:


I experienced a similar problem when I tried to deploy a Vaadin application in openshift. It doesn’t matter if you have production mode equals to false, openshift is not compiling the scss to css.

The only way to make the theme work is precompiling the scss and then deploy. To do that you can use the Eclipse plugin or do it through the command line. You can find more information about it here: https://vaadin.com/book/es/-/page/themes.sass.html



来源:https://stackoverflow.com/questions/24512143/deploying-vaadin-app-in-openshift

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!