Deployment 应用程序部署在cloudhub上,但可以';够不着

Deployment 应用程序部署在cloudhub上,但可以';够不着,deployment,mule,cloudhub,Deployment,Mule,Cloudhub,在本地机器上进行测试后,我已在cloudhub.io上部署了我的应用程序。日志显示该应用程序已成功部署,并且正在正常运行,但当我尝试使用它时,我会看到一个页面显示: 如果您部署了应用程序,并希望在此处看到一些内容,则意味着您需要更改docroot的配置 我不明白在这种情况下我要做什么,在mule的网站上找不到docroot的任何参考资料 编辑:这是我的大部分配置 <sns:config name="Amazon_SNS" accessKey="*********" secretKe

在本地机器上进行测试后,我已在cloudhub.io上部署了我的应用程序。日志显示该应用程序已成功部署,并且正在正常运行,但当我尝试使用它时,我会看到一个页面显示: 如果您部署了应用程序,并希望在此处看到一些内容,则意味着您需要更改docroot的配置

我不明白在这种情况下我要做什么,在mule的网站上找不到docroot的任何参考资料

编辑:这是我的大部分配置

    <sns:config name="Amazon_SNS" accessKey="*********" secretKey="********"  doc:name="Amazon SNS" region="EUWEST1">
    <sns:connection-pooling-profile initialisationPolicy="INITIALISE_ONE" exhaustedAction="WHEN_EXHAUSTED_GROW"/>
</sns:config>
<http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="${http.port}" doc:name="HTTP Listener Configuration"/>
<json:object-to-json-transformer name="Object_to_JSON" doc:name="Object to JSON"/>
<flow name="CreateTopic">
    <http:listener config-ref="HTTP_Listener_Configuration" path="/createtopic" doc:name="HTTP"/>
    <sns:create-topic config-ref="Amazon_SNS" doc:name="Amazon SNS">
        <sns:create-topic-request name="#[message.inboundProperties.'http.query.params'.name]"/>
    </sns:create-topic>
    <json:object-to-json-transformer doc:name="Object to JSON"/>
</flow>
<flow name="Subscribe">
    <http:listener config-ref="HTTP_Listener_Configuration" path="/Subscribe" doc:name="HTTP"/>
    <sns:subscribe config-ref="Amazon_SNS" doc:name="Amazon SNS">
        <sns:subscribe-request topicArn="#[message.inboundProperties.'http.query.params'.topic]" protocol="email" endpoint="#[message.inboundProperties.'http.query.params'.subscriber]"/>
    </sns:subscribe>
    <json:object-to-json-transformer doc:name="Object to JSON"/>
</flow>
<flow name="ListTopics">
    <http:listener config-ref="HTTP_Listener_Configuration" path="/listTopics" doc:name="HTTP"/>
    <sns:list-topics config-ref="Amazon_SNS" doc:name="Amazon SNS">
    </sns:list-topics>
    <json:object-to-json-transformer doc:name="Object to JSON"/>
</flow>
<flow name="Publish">
    <http:listener config-ref="HTTP_Listener_Configuration" path="/publish" doc:name="HTTP"/>
    <sns:publish config-ref="Amazon_SNS" doc:name="Amazon SNS">
        <sns:publish-request topicArn="#[message.inboundProperties.'http.query.params'.topic]" message="There's new content in the topic #[message.inboundProperties.'http.query.params'.topic]" subject="New comments on an idea - Crowdsourcing Forums" messageStructure="Raw"/>
    </sns:publish>
    <json:object-to-json-transformer doc:name="Object to JSON"/>
</flow>
<flow name="checkTopic">
    <http:listener config-ref="HTTP_Listener_Configuration" path="/checkTopic" doc:name="HTTP"/>
    <sns:get-topic-attributes config-ref="Amazon_SNS" doc:name="Amazon SNS">
        <sns:get-topic-attributes-request topicArn="#[message.inboundProperties.'http.query.params'.topic]"/>
    </sns:get-topic-attributes>
</flow>

您将端口设置为8080

CloudHub仅支持应用程序域URL的端口80上的传入流量,如下所述:

您可以使用http.port环境变量:

port="${http.port}"
还将主机设置为0.0.0.0

<http:listener-config port="${http.port}" host="0.0.0.0"
        name="http" />


您能发布一些您公开的端点的相关配置吗?您是否也在使用推荐的端口?用代码更新了主题。抱歉,这是我的本地配置,在我部署之前,我将端口设置为${http.port},所以我仍然有相同的问题..基于此,您应该能够点击:''我不能,我一直收到此消息,无论我键入什么:哦,spaghettios!这里什么都没有。如果您部署了应用程序,并希望在此处看到一些内容,则意味着您需要更改docroot的配置。然而,许多集成应用不需要用户界面——它们在后台默默地工作,集成东西和打击犯罪。如果您需要进一步的帮助,请随时与我们联系。这样做了,我还必须停止我的其他项目,然后启动该项目,以便正确部署和工作。谢谢你,瑞安!为我工作。我刚刚找到这篇文章,这是一篇关于此的演练,请参阅步骤2:配置HTTP连接器: