首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Openshift上的Goliath

Openshift上的Goliath
EN

Stack Overflow用户
提问于 2016-03-30 15:40:02
回答 1查看 150关注 0票数 2

尝试使用以下config.ru在Openshift上部署Goliath应用程序

代码语言:javascript
复制
require 'goliath'
require './goliathapp'

runner = Goliath::Runner.new(ARGV, nil)
runner.api = GoliathApp.new
runner.app = Goliath::Rack::Builder.build(GoliathApp, runner.api)
runner.run

在本地,在我的测试床环境中,应用程序运行得很顺利,但在Openshift上,它会返回以下特权错误。

代码语言:javascript
复制
[Client 20] Cannot checkout session. An error occured while starting the web application.
Error page:
no acceptor (port is in use or requires root privileges) (RuntimeError)
/var/lib/openshift/.../.gem/gems/eventmachine-1.2.0.1/lib/eventmachine.rb:530:in `start_tcp_server'
/var/lib/openshift/.../.gem/gems/eventmachine-1.2.0.1/lib/eventmachine.rb:530:in `start_server'
/var/lib/openshift/.../.gem/gems/goliath-1.0.4/lib/goliath/server.rb:86:in `block in start'
/var/lib/openshift/.../.gem/gems/em-synchrony-1.0.4/lib/em-synchrony.rb:38:in `block (2 levels) in synchrony'

有人在Openshift上运行过goliath吗?

谢谢,

EN

回答 1

Stack Overflow用户

发布于 2016-03-30 15:50:27

您是否100%确定您实际上没有在该端口上运行另一个应用程序?

请尝试

$ lsof -i :9000

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36302537

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档