简体   繁体   English

将Magnolia CMS添加到OpenShift应用程序

[英]Adding Magnolia CMS to OpenShift application

Today I have been trying to install magnolia as a Openshift application. 今天,我一直在尝试将木兰安装为Openshift应用程序。 I have tried to follow this step-by-step guide but all I can get is this exception in the log: 我试图按照此分步指南进行操作,但我所能获得的只是日志中的此异常:

Caused by: java.lang.RuntimeException: Magnolia is not configured properly and therefore unable to start: real path can't be obtained [ctx real path:null]. 原因:java.lang.RuntimeException:木兰配置不正确,因此无法启动:无法获得真实路径[ctx真实路径:空]。 Please refer to the Magnolia documentation for installation instructions specific to your environment. 请参阅Magnolia文档以获取特定于您的环境的安装说明。

I have no idea how to run it. 我不知道如何运行它。 Also whenever I recommit the git or restart the app, openshift reverts changes to server.xml and places unpackWARs="false" again. 同样,每当我重新提交git或重新启动应用程序时,openshift都会将更改还原到server.xml并再次放置unpackWARs =“ false”

Did you read this? 你读过这个吗?

https://blog.openshift.com/free-magnolia-cms-hosting-on-openshift/ https://blog.openshift.com/free-magnolia-cms-hosting-on-openshift/

Also, where are you changing the server.xml? 另外,您在哪里更改server.xml? If you are doing it directly in your gear that will get overwritten. 如果您直接在齿轮中进行操作,则会被覆盖。 What you should do is go into your local git respository for the application, then into .openshift/config and there should be a server.xml in there. 您应该做的是进入应用程序的本地git存储库,然后进入.openshift / config,其中应该有server.xml。 That is the one you should edit. 那是您应该编辑的那个。

So I found out what the problem was. 所以我找出了问题所在。 When creating my application in OpenShift I placed a github link for source, and that did not generate my .openshift folder in my source, and I was completely lost why my server resets the server settings. 在OpenShift中创建应用程序时,我在源代码中放置了一个github链接,但该链接未在我的源代码中生成.openshift文件夹,而我完全迷失了为什么服务器重置服务器设置的原因。

So the solution was to create new application without using github as the source, and then i could change my server.xml that held the configuration. 因此,解决方案是在不使用github作为源的情况下创建新的应用程序,然后我可以更改保存配置的server.xml。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM