goliath

    0热度

    1回答

    我已经安装了goliath宝石,但现在任何控制台rails命令失败,并返回: rake aborted! uninitialized constant Rack::Chunked /home/Sites/myapp/config/application.rb:7:in `<top (required)>' /home/Sites/myapp/Rakefile:4:in `<top (requ

    0热度

    1回答

    我越来越疯狂,也许你可以帮我:) 事情是:我有一个巨人的API,当我要在服务器上部署Capistrano时,如果我检查日志文件,我可以看到,每隔30 - 35秒此消息: Nov 26 14:21:24 adlooped-pro adlooped.log: [28665:INFO] 2013-11-26 13:20:18 :: Starting server on 0.0.0.0:9201 in p

    0热度

    1回答

    我正在使用Goliath为我的Rails应用程序编写Web服务,并且我想记录发送到我的Web服务器的所有请求。我有这个Api类,这是内部的两个模块: require 'goliath' module WebService module Rest class Api < Goliath::API def response(env) # Log the

    1热度

    1回答

    试图与下面config.ru require 'goliath' require './goliathapp' runner = Goliath::Runner.new(ARGV, nil) runner.api = GoliathApp.new runner.app = Goliath::Rack::Builder.build(GoliathApp, runner.api) runn

    0热度

    3回答

    我想测试一个巨人+葡萄应用程序像下面+葡萄: require 'em-synchrony/em-mongo' require 'yajl/json_gem' require 'goliath' require 'grape' class API < Grape::API version 'v1', :using => :path format :json

    0热度

    1回答

    基本上是我的最后一次尝试是即时得到这个错误: [:error, "bad URI(is not URI?): ://localhost:80/auth/twitter/auth/twitter"] 当我浏览到 http://127.0.0.1/auth/twitter 这是我的歌利亚的服务器 class Application < Goliath::API use(Rack::S

    1热度

    1回答

    我想在我的goliath供电的web应用程序中使用内置memcache客户端(与时间同步)中的eventmachine。它在本地运行的很好,但是当我部署到Heroku时,我无法连接它。下面是我用什么打开连接: cache = EM::P::Memcache.connect 有没有一种方法可以让我得到它的工作,还是我将不得不使用不同的客户端,像达利?是否还有其他基于eventmachine的me

    2热度

    1回答

    我使用Ruby 1.9.3在本地主机上运行一个简单的goliath服务器,它不是异步运行http请求。下面的代码: require 'goliath' require 'em-synchrony' require 'em-synchrony/em-http' class Server < Goliath::API use Goliath::Rack::Validation::Re

    1热度

    1回答

    这是巨人一个例子: require 'goliath' class HelloWorld < Goliath::API def response(env) [200, {}, "hello world"] end end 如何定义在Web服务器的类和子类Goliath::API结果被启动?难道这不应该只是定义一个类,而不是实际实例化和执行一个类?

    0热度

    1回答

    我正在为Goliath服务器编写自己的中间件。 如何在“调用”方法中获取请求标头? 谢谢!