Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Alex Shi
@hlcfan
VIP
NO. 1364 / 2012-03-10

西安
76 Topics / 385 Replies
1 Followers
0 Following
96 Favorites
huh
GitHub Public Repos
  • pokr 54

    Make agile estimating and planning easy with our online planning or scrum poker tool

  • webmock 4

    Webmock for Golang, to stub requests.

  • mux-contrib 1

    Bunch of middlewares make mux easier

  • hlcfan.github.io 0

  • fm 0

    Content agnostic formatter for JSON, XML string. Indent incomplete JSON.

  • geoip 0

    Elixir library to find geo location information given an IP address, hostname or Plug.Conn

  • live_select 0

    Dynamic (multi)selection field for LiveView

  • gock 0

    HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽

  • dotfiles 0

    ~hlcfan

  • go 0

    The Go programming language

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 新浪微博时间分割线的实现,大家有什么思路? at May 06, 2012

    need assistance.

  • GotGitHub at May 06, 2012

    非常好。

  • 已经修改了 app/view 里的一个文件的内容,可是主页刷新后却没变化 at May 06, 2012

    你有没有 precompile assets?有的话,需要清理 clean.

  • 郁闷的事情. at May 06, 2012

    再往右,仔细找

  • Rails 里个性的时间显示是怎么实现的? at May 06, 2012

    正是我想要的。感谢

  • 搭建 rubygems 镜像遇到的问题 at May 06, 2012

    第二个错误,提示文件不存在,检查是否存在,如果存在检查权限

  • 安装 Octopress 时报错,求办法!! at April 29, 2012

    你先看看有么有这个 repo

  • 现在可以发布代码了,用 ``` ``` 包起来 at April 29, 2012

    这个功能不是一只就有么

  • 升级 Ubuntu 12.04 后的杯具 at April 29, 2012

    不用 ubuntu,用 fc。

  • Instagram 架构分析笔记 at April 28, 2012

    顶之

  • 这几天闲着没事模仿 StackOverflow 写了个聊天室.求围观. at April 28, 2012

    欢迎围观 ---> __ --->

  • 这几天闲着没事模仿 StackOverflow 写了个聊天室.求围观. at April 28, 2012

    #14 楼 @musicflow 你好,我已经加你了。

  • 这几天闲着没事模仿 StackOverflow 写了个聊天室.求围观. at April 28, 2012

    #15 楼 @azhao 恩,我觉得可能是退出时候发送 ajax 请求出问题了...

  • 这几天闲着没事模仿 StackOverflow 写了个聊天室.求围观. at April 28, 2012

    #12 楼 @azhao = =|||不是吧.ruby-china 好像没有崩过啊...我搞不懂为什么会崩。

  • 这几天闲着没事模仿 StackOverflow 写了个聊天室.求围观. at April 28, 2012

    #10 楼 @musicflow 哇,你是乐维的,乐维非常不错!!! 或许我们可以合作 XD

  • 这几天闲着没事模仿 StackOverflow 写了个聊天室.求围观. at April 28, 2012

    #8 楼 @yakjuly = =|||恩,必须的。或许某天该把密码改成 monkey,哈哈。

  • 这几天闲着没事模仿 StackOverflow 写了个聊天室.求围观. at April 28, 2012

    #6 楼 @yakjuly 是的,存在这个问题。不过只能在五一回来才能修复.见谅。

  • 这几天闲着没事模仿 StackOverflow 写了个聊天室.求围观. at April 28, 2012

    #4 楼 @yakjuly = =|||。这是一个很酷的电邮地址,哈哈。密码是 123456,你可以试试.:)

  • 这几天闲着没事模仿 StackOverflow 写了个聊天室.求围观. at April 28, 2012

    #1 楼 @yakjuly 你好,我注册没有问题。你输入的电邮是?

  • 这几天闲着没事模仿 StackOverflow 写了个聊天室.求围观. at April 28, 2012

    = =|||请稍等,我把之前的信息全删了。

  • Nginx (Passenger)+Mongodb+Redis 占了 460Mb 内存正常吗 at April 28, 2012

    #15 楼 @qing 你好,我不太理解你的话。

  • 各位在本地跑 ruby-china 用什么? at April 25, 2012

    thin

  • Nginx (Passenger)+Mongodb+Redis 占了 460Mb 内存正常吗 at April 25, 2012

    楼上所有的筒子们. 我之前用 passenger standalone 模式跑,占这么多内存. 我今天换成了非 standalone,暂且叫 integrated 模式吧。请看!:

    [hlcfan@li414-74 chatpro]$ free -m
                 total       used       free     shared    buffers     cached
    Mem:           494        241        253          0         15         97
    -/+ buffers/cache:        128        366
    Swap:          511          0        511
    
    
    

    一下子就一半了!求解释!

  • 在 Nginx+Passenger 上部署 rails 应用出问题了.总是显示:Welcome to nginx! at April 25, 2012

    #18 楼 @sharp 你好,机器的 nginx 进程的 woker process 是以 nobody 跑的。我刚试了下,服务器可以用普通用户 hlcfan 和 root 跑,为什么不能用 nobody 跑呢?

  • 在 Nginx+Passenger 上部署 rails 应用出问题了.总是显示:Welcome to nginx! at April 25, 2012

    #16 楼 @sharp 哇!好了! 你就是大神! 为什么加了 user root 就好了?我本机和服务器一模一样,本机没有加就可以。求解。

  • 在 Nginx+Passenger 上部署 rails 应用出问题了.总是显示:Welcome to nginx! at April 25, 2012

    #14 楼 @sharp 你好,什么意思?怎么配置主机? 是这样访问的。

  • 在 Nginx+Passenger 上部署 rails 应用出问题了.总是显示:Welcome to nginx! at April 25, 2012

    ls -lh

    [hlcfan@li414-74 chatpro]$ ls -lh
    total 1.8M
    drwxrwxr-x 8 hlcfan hlcfan 4.0K Apr 21 06:04 app
    drwxrwxr-x 5 hlcfan hlcfan 4.0K Apr 21 06:04 config
    -rw-rw-r-- 1 hlcfan hlcfan  157 Apr 21 06:04 config.ru
    drwxrwxr-x 2 hlcfan hlcfan 4.0K Apr 21 06:04 db
    drwxrwxr-x 2 hlcfan hlcfan 4.0K Apr 21 06:04 doc
    -rw-rw-r-- 1 hlcfan hlcfan   10 Apr 25 03:57 dump.rdb
    -rw-rw-r-- 1 hlcfan hlcfan 1.7K Apr 21 08:16 Gemfile
    -rw-rw-r-- 1 hlcfan hlcfan 4.6K Apr 23 09:11 Gemfile.lock
    drwxrwxr-x 4 hlcfan hlcfan 4.0K Apr 21 06:04 lib
    drwxrwxr-x 2 hlcfan hlcfan 4.0K Apr 21 07:11 log
    -rw------- 1 hlcfan hlcfan 1.7M Apr 25 04:02 nohup.out
    drwxrwxr-x 3 hlcfan hlcfan 4.0K Apr 25 03:26 public
    -rw-rw-r-- 1 hlcfan hlcfan  272 Apr 21 06:04 Rakefile
    -rw-rw-r-- 1 hlcfan hlcfan   41 Apr 21 06:04 README.rdoc
    drwxrwxr-x 2 hlcfan hlcfan 4.0K Apr 21 06:04 script
    -rwxrwxr-x 1 hlcfan hlcfan  134 Apr 22 07:00 start.sh
    drwxrwxr-x 7 hlcfan hlcfan 4.0K Apr 21 06:04 test
    drwxrwxr-x 6 hlcfan hlcfan 4.0K Apr 21 07:00 tmp
    drwxrwxr-x 5 hlcfan hlcfan 4.0K Apr 21 07:07 vendor
    
    

    Nginx Config

    #user  nobody;
    worker_processes  1;
    
    error_log  logs/error.log;
    #error_log  logs/error.log  notice;
    #error_log  logs/error.log  info;
    
    #pid        logs/nginx.pid;
    
    
    events {
        worker_connections  1024;
        use epoll;
    }
    
    http {
        passenger_root /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12;
        passenger_ruby /usr/local/rvm/wrappers/ruby-1.9.3-p194/ruby;
        #passenger_default_group root;
        #passenger_default_user root;
        include       mime.types;
        default_type  application/octet-stream;
    
        #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
        #                  '$status $body_bytes_sent "$http_referer" '
        #                  '"$http_user_agent" "$http_x_forwarded_for"';
    
        #access_log  logs/access.log  main;
    
        #sendfile        on;
        #tcp_nopush     on;
    
        #keepalive_timeout  0;
        keepalive_timeout  65;
    
        gzip  on;
    
        server {
            listen       80;
            server_name  106.187.94.74;
        root /home/hlcfan/chatpro/public;
        passenger_enabled on;
        rails_env production;
    
            #charset koi8-r;
    
            #access_log  logs/host.access.log  main;
    
            #location / {
            #     root   html;
            #     index  index.html index.htm;
            #}
    
            #error_page  404              /404.html;
    
            # redirect server error pages to the static page /50x.html
            #
            error_page   500 502 503 504  /50x.html;
            location = /50x.html {
                root   html;
            }
           #some commented config
        }
    
    
    
    
    
    
    }
    
    
  • 本机和服务器环境一模一样,本机 ok.服务器就是 403 at April 25, 2012

    #3 楼 @sharp 没有这个文件。我已经删了.重启了。权限没有问题.= =|||. 为什么我本机的目录最后有一个点,但是服务器目录最后没有点。

  • 在 Nginx+Passenger 上部署 rails 应用出问题了.总是显示:Welcome to nginx! at April 25, 2012

    #10 楼 @huacnlee 恩,我注意这段了。但是我没有思路。

  • 在 Nginx+Passenger 上部署 rails 应用出问题了.总是显示:Welcome to nginx! at April 25, 2012

    @huacnlee 华顺,求帮忙。

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