我去支付宝了
没有这样的机制,Ruby China 到目前未知为通过网站盈利
请以后发到招聘栏目,下次在这样,一定移动到 NoPoint 栏目 另外,请排好版
我讨厌别人叫 RoR
设置最大内存限制,依赖 LRU
没有这类东西,你得自己实现
给 Ruby China 开一个,试试自定义 SSL
没用了,都删除了
看 log
limit 为 1..150
你确定只能取到 100 个?
params do
optional :offset, type: Integer, default: 0
optional :limit, type: Integer, default: 20, values: 1..150
end
get "replies", each_serializer: ReplySerializer, root: "replies" do
@topic = Topic.find(params[:id])
@replies = @topic.replies.unscoped.asc(:_id).includes(:user).offset(params[:offset]).limit(params[:limit])
render @replies
end
重新上传图片,之前你可能遇到上传服务器抽风了
这个是临时的问题,现在好了
$ curl -v http://ruby.taobao.org/gems/loofah-2.0.2.gem
* About to connect() to ruby.taobao.org port 80 (#0)
* Trying 223.6.253.37...
* connected
* Connected to ruby.taobao.org (223.6.253.37) port 80 (#0)
> GET /gems/loofah-2.0.2.gem HTTP/1.1
> User-Agent: curl/7.28.1
> Host: ruby.taobao.org
> Accept: */*
>
< HTTP/1.1 302 Moved Temporarily
< Server: nginx/1.4.7
< Date: Thu, 11 Jun 2015 02:03:02 GMT
< Content-Type: text/html
< Content-Length: 160
< Connection: keep-alive
< Location: http://rubygems-china.oss.aliyuncs.com/gems/loofah-2.0.2.gem
<
<html>
<head><title>302 Found</title></head>
<body bgcolor="white">
<center><h1>302 Found</h1></center>
<hr><center>nginx/1.4.7</center>
</body>
</html>
* Connection #0 to host ruby.taobao.org left intact
* Closing connection #0
#2 楼 @scriptfans 试试 gem install rails -V 看看过程
我们的目标是 100ms 以内
好像是要注意跳转地址