gpt4 book ai didi

java - 在 Openshift 中部署 Vaadin 应用程序

转载 作者:行者123 更新时间:2023-11-29 03:19:33 25 4
gpt4 key购买 nike

我刚刚创建了我的第一个 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.

最佳答案

我尝试在 openshift 中部署 Vaadin 应用程序时遇到了类似的问题。生产模式是否等于 false 并不重要,openshift 不会将 scss 编译为 css。

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

关于java - 在 Openshift 中部署 Vaadin 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24512143/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com