在 Openshift 中部署 Vaadin 应用程序 [英] Deploying Vaadin App in Openshift

查看:84
本文介绍了在 Openshift 中部署 Vaadin 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚创建了我的第一个 Vaadin 应用程序.该应用程序在我的本地服务器上运行良好.

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

我想将此应用上传到 Openshift.

I want to upload this app to Openshift.

我按照此处的说明进行操作:https://www.openshift.com/kb/kb-e1088-how-to-deploy-pre-compiled-java-applications-war-and-ear-files-onto-your-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

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

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?

谢谢!

控制台:

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.

推荐答案

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

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.

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

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

这篇关于在 Openshift 中部署 Vaadin 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆