无法将Sample Shiny App推送到Bluemix

时间:2015-02-06 01:59:23

标签: r shiny ibm-cloud

无法将Sample App推送到Bluemix

嗨,

我试图尝试使用Bluemix的Shiny示例教程 - http://www.ibm.com/developerworks/library/ba-rtwitter-app/index.html

在经历了多个问题之后,我发现应用程序没有收听Bluemix -ERROR动态分配的端口:"在健康状况检查超时内无法接受连接..."

由于应用程序需要cf-buildpack-r,假设环境变量也由同一个包处理是公平的吗?

我在哪里添加以下代码段?

var port=process.env.VCAP_APP_PORT || 1337; http.createServer(app).listen(port), function(){ console.log('Express server listening on port ' + port); });

因为没有其他可见的js代码存在。我不确定我是否遗漏了什么。

如何进行必要的修改,因为没有可重复的示例来调试此类错误?

命令

  

cf push EdusasApp -b https://github.com/aruizga7/cf-buildpack-r --no-route

我还创建了一个包含以下内容的本地manifest.yml:

applications: - host: Edusas disk: 1024M name: Edusas buildpack: https:..../cf-buildpack-r path: . domain: ng.bluemix.net mem: 512M instances:

请帮助

1 个答案:

答案 0 :(得分:1)

查看文档http://hub.jazz.net/project/crackmanworld/TwitterBluemix/overview中引用的项目。在项目中有一个文件,http://hub.jazz.net/project/crackmanworld/TwitterBluemix/ ...包含服务器启动。当服务器启动它绑定到环境变量VCAP_APP_PORT中定义的端口时,如果需要,也可以使用VCAP_PORT。