在Openshift中部署Vaadin App

时间:2014-07-01 13:58:27

标签: java vaadin openshift vaadin7

我刚创建了我的第一个Vaadin应用程序。该应用程序在我的本地服务器上正常工作。

我想将此应用程序上传到Openshift。

我按照这里的说明操作: https://www.openshift.com/kb/kb-e1088-how-to-deploy-pre-compiled-java-applications-war-and-ear-files-onto-your-openshift-gear

该应用已上传,但唯一显示的是文字。没有面板或CSS或任何东西。

有谁知道为什么会这样?

谢谢!

控制台:

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 个答案:

答案 0 :(得分:4)

当我尝试在openshift中部署Vaadin应用程序时,我遇到了类似的问题。如果您的生产模式等于false,则openshift不会将scss编译为css,这无关紧要。

使主题工作的唯一方法是预编译scss然后部署。为此,您可以使用Eclipse插件或通过命令行执行此操作。 您可以在此处找到有关它的更多信息:https://vaadin.com/book/es/-/page/themes.sass.html

相关问题