我越来越疯狂,也许你可以帮我:) 事情是:我有一个巨人的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
我想测试一个巨人+葡萄应用程序像下面+葡萄: require 'em-synchrony/em-mongo'
require 'yajl/json_gem'
require 'goliath'
require 'grape'
class API < Grape::API
version 'v1', :using => :path
format :json
我使用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