Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
又忧桑
@ghn645568344
Member
NO. 16225 / 2014-12-04

[email protected]
54 Topics / 70 Replies
2 Followers
0 Following
13 Favorites
No GitHub.
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • elasticsearch-persistence 怎么改变默认配置? at December 06, 2016

    #1 楼 @kooglezhang 不是要链接本地的,要链接另一台

  • 整合 ElasticSearch 到现有 Rails 项目 at December 05, 2016

    如果 ES 不在本地,怎么修改请求的默认本地连接?

  • 请问大家,influxdb-ruby 这个 GEM 报 invalid field format at November 22, 2016

    #1 楼 @hging 加上 database 也是同样的错误、、、、

  • 请教 Fluentd 的 Rails 日志配置 at November 18, 2016

    #4 楼 @huacnlee 请问大神,是写一个定时任务吗?每隔多长时间,去访问下 LOG 文件,再发送过去?

  • 请教 Fluentd 的 Rails 日志配置 at November 18, 2016

    #3 楼 @huacnlee 谢谢大神,已经按照上述的方式实现了,日志转发,但现在会有一个转码的问题😥 。。。。

  • 请教 Fluentd 的 Rails 日志配置 at November 18, 2016

    #1 楼 @huacnlee 请问大神,这个是不是,只提交的特定的内容,而不是原有日志里的所有输出?

  • [着急] Ruby 或 Rails 如何将二进制转化为图片 at October 31, 2016

    用 carrierwave-base64 https://github.com/lebedev-yury/carrierwave-base64

  • Rails 5 生产环境 怎么访问 public 下静态文件 at October 25, 2016

    #3 楼 @huacnlee 🙏 膜拜 十分感谢,谢天谢地终于出来了。。。。。😎 #2 楼 @adamshen 话说如果用 Nginx 实现的话是不是 需要转发特定的名称的这样

    location /public {
            internal;
            alias $app_root/public;
    }
    
  • 文件的安全下载,报 Cannot read file at October 21, 2016

    #1 楼 @flingfox63 谢谢了 已经解决了

    resources :maps do
      collection do
        get :tag, constraints: { id: /[\w\d\.\-\_]+/i }
      end
    end
    
  • 文件的安全下载,报 Cannot read file at October 21, 2016

    #1 楼 @flingfox63 😍 万分感谢 原因 获取参数的时候 url 中带点 " .jpg" 获取 name 参数时 没有获得到 " .jpg" 信息,加上后就好了。。。。😱 请问 怎么能直接获得到 点 的参数呢?

  • Nginx + Rails 下如何进行文件的安全下载? at October 21, 2016

    弱弱的问一声 为什么我这没有 File.find 这个方法呢?

  • 请教大家关于上传后,转码问题 at September 29, 2016

    #3 楼 @huacnlee 我看了您发的教程,配置了下

    location / {
                   proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    
                   proxy_set_header Host $http_host;
    
                   proxy_redirect off;
    
                   proxy_pass http://xxx1:9020;
    
           }
           location /api/user_infos/create/ {
                   proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    
                   proxy_set_header Host $http_host;
    
                   proxy_redirect off;
    
                   proxy_pass http://xxx2:9021;
    
           }
    
    

    请问,现在所有关于 api/user_infos/create 的访问都转发到 xxx2,请问怎么能让请求 xxx1 的同时转发到 xxx2 呢?

  • 请教大家关于上传后,转码问题 at September 29, 2016

    #1 楼 @huacnlee 请问 Nginx 可以写判断吗?如果不能的话岂不是所有的请求都转过去了?请指教🙏

  • 请教大家,公式字符串怎么解析 at September 27, 2016

    #5 楼 @adamshen 包含代码的计算式

  • Nginx 修改默认端口无效 at August 08, 2016

    #1 楼 @yingce 刚才问了下同事,确定 80 被占用了,

    tcp6       0      0 :::80                   :::*                    LISTEN      off (0.00/0/0)
    

    nginx.conf 这个下面没有发现有关 80 端口的

    user www-data;
    worker_processes 4;
    pid /run/nginx.pid;
    
    events {
            worker_connections 768;
            # multi_accept on;
    }
    
    http {
    
            ##
            # Basic Settings
            ##
    
            sendfile on;
            tcp_nopush on;
            tcp_nodelay on;
            keepalive_timeout 65;
            types_hash_max_size 2048;
            # server_tokens off;
    
            # server_names_hash_bucket_size 64;
            # server_name_in_redirect off;
    
            include /etc/nginx/mime.types;
            default_type application/octet-stream;
    
            ##
            # Logging Settings
            ##
    
            access_log /var/log/nginx/access.log;
            error_log /var/log/nginx/error.log;
    
            ##
            # Gzip Settings
            ##
    
            gzip on;
            gzip_disable "msie6";
    
            # gzip_vary on;
            # gzip_proxied any;
            # gzip_comp_level 6;
            # gzip_buffers 16 8k;
            # gzip_http_version 1.1;
            # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
    
            ##
            # nginx-naxsi config
            ##
            # Uncomment it if you installed nginx-naxsi
                                                                                                                                                                1,1           Top
    
    
  • Sunspot 在 console 的时候 报错 请教各位大神了 at March 21, 2016

    #2 楼 @justin

    Removing stale PID file at /home/haonan/xinsvn/rbspider/testmongo/solr/pids/development/sunspot-solr-development.pid
    Successfully started Solr ...
    
    

    这样算是启动成功了吗?帅哥

  • 现在想做一个聊天室的页面,但是没有思路,请教下大家 at January 14, 2016

    #11 楼 @lokyoung 请问 rails 5 发布了吗?在哪可以看见源码

  • 现在想做一个聊天室的页面,但是没有思路,请教下大家 at January 13, 2016

    #3 楼 @flowerwrong 请问有没有案例之类的东东?

  • 现在想做一个聊天室的页面,但是没有思路,请教下大家 at January 13, 2016

    #2 楼 @541991a channel 是 rails 5 独有的新功能吗?

  • 现在想做一个聊天室的页面,但是没有思路,请教下大家 at January 13, 2016

    #1 楼 @piecehealth channel 是 rails 5 独有的新功能吗?

  • DHH 亲自给你演示, 如何用 Action Cable 做一个实时的聊天 app at January 13, 2016

    channel 是 rails 5 独有的新功能吗?

  • Rails 在页面循环输出的文字,怎么省略成。。。 at November 28, 2015

    #1 楼 @beiersi 没有看懂那个方法,能举个例子吗?谢谢大哥了

  • Watir 5.0 测试加载报错,希望大家帮帮 at October 13, 2015

    #1 楼 @huacnlee 已经安好了 watir-webdriver (0.9.0) 但是加载 watir-webdriver 会报错

    
    irb(main):001:0> require 'watir-webdriver'
    LoadError: cannot load such file -- watir-webdriver/locators/element_locator
        from /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `require'
        from /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
        from /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in `require'
        from /usr/local/lib/ruby/gems/2.1.0/gems/watir-webdriver-0.9.0/lib/watir-webdriver.rb:13:in `<top (required)>'
        from /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `require'
        from /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
        from /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in `require'
        from (irb):1
        from /usr/local/bin/irb:11:in `<main>'
    
    
  • 跪求各位大神关于 Rails 启动的问题 at September 18, 2015

    #2 楼 @fumesy 谢谢了

  • 跪求各位大神关于 Rails 启动的问题 at September 18, 2015

    #1 楼 @rei 谢谢了~~~

  • 跪求各位大神关于数据库的问题 at September 17, 2015

    #1 楼 @rei 这样修改对吗?

  • 跪求各位大神关于数据库的问题 at September 17, 2015

    #3 楼 @night_7th 谢谢了~已经解决了~非常感谢

  • 请教一个循环问题 while at December 18, 2014

    #1 楼 @erithair 谢谢了~

  • Prev
  • 1
  • 2
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English