Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Alex Shi
@hlcfan
高级会员
第 1364 位会员 / 2012-03-10

西安
76 篇帖子 / 385 条回帖
1 关注者
0 正在关注
96 收藏
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
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 本机和服务器环境一模一样,本机 ok.服务器就是 403 at 2012年04月25日

    #1 楼 @sharp 你好,无果啊。

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

    #7 楼 @loddit 你好,修改完已经 reload 了.localhost 已经换成我的 ip 了.rvm 是系统默认装到那里的. passenger 在 standalone 模式是可以跑的。但是用 nginx 就出问题。

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

    @lgn21st @Rei @ywencn @zmbacker 求帮忙。我实在无解啊。

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

    我最后这么写,在我本机可以正常跑。但是到了服务器就有问题了.403.求解。

    server {
            listen       80;
            server_name  106.187.94.74;
    
        root /home/hlcfan/workspace/chatpro/public;
        passenger_enabled on;
        rails_env production;
            #charset koi8-r;
    
            #access_log  logs/host.access.log  main;
    
        #location / {
        #   root   /home/hlcfan/workspace/chatpro/public;
        #   index  index.html index.htm;
        #}
    
    
    
    

    error.log 里依然访问/public/index.html....

    2012/04/25 02:14:23 [error] 2819#0: *19 "/home/hlcfan/chatpro/public/index.html" is forbidden (13: Permission denied), client: 118.202.225.7, server: localhost, request: "GET / HTTP/1.1", host: "106.187.94.74"
    
    
    
  • 在 Nginx+Passenger 上部署 rails 应用出问题了.总是显示:Welcome to nginx! at 2012年04月25日

    #2 楼 @willmouse 你好,我删了之后,403. 你说 root 指向 public 是这样: root /home/hlcfan/workspace/chatpro/public;

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

    #1 楼 @ywjno 啊,必须要有这个?

  • Nginx (Passenger)+Mongodb+Redis 占了 460Mb 内存正常吗 at 2012年04月25日

    #9 楼 @aNdReW_Qx

    $ps aux| grep -v grep| grep passenger
    root     29885  0.0  0.1   6668   528 ?        Ss   Apr23   0:00 nginx: master process /var/lib/passenger-standalone/3.0.12-x86-ruby1.9.3-linux-gcc4.6.3-1002/nginx-1.0.15/sbin/nginx -c /tmp/passenger-standalone.29738/config -p /tmp/passenger-standalone.29738/
    
    

    现在只有一个实例。

  • Nginx (Passenger)+Mongodb+Redis 占了 460Mb 内存正常吗 at 2012年04月25日

    #6 楼 @cactis 我这才跑了一个,就占了这么多。你竟然跑五个.gosh.

  • Nginx (Passenger)+Mongodb+Redis 占了 460Mb 内存正常吗 at 2012年04月25日

    #4 楼 @aNdReW_Qx 我买的 linode 512 的。感觉太小了...

  • Nginx (Passenger)+Mongodb+Redis 占了 460Mb 内存正常吗 at 2012年04月25日

    #1 楼 @zmbacker 那就说这个正常?

  • 你不必这么着急 at 2012年04月19日

    pretty good. 我前段时间在北京一创业公司实习。感觉不错。

  • 可以在单独的 js 文件中使用 "var online_users = #{@users}" at 2012年04月18日

    #5 楼 @Rei 你好,用后缀的话需要写 render 吗?

  • 把 JS 代码从 HAML 文件里单独放到 assets/javascript 下就不执行 at 2012年04月18日

    #7 楼 @ywjno 我越了,依然越不过去...

  • 把 JS 代码从 HAML 文件里单独放到 assets/javascript 下就不执行 at 2012年04月18日

    #1 楼 @ywjno js2coffee 打不开.= =

  • 把 JS 代码从 HAML 文件里单独放到 assets/javascript 下就不执行 at 2012年04月18日

    #4 楼 @chinacheng 有这个。

  • 把 JS 代码从 HAML 文件里单独放到 assets/javascript 下就不执行 at 2012年04月18日

    #2 楼 @chinacheng 你好,config.assets.enabled = true 我在 application.js 里

    //= require custom
    
    
  • 一张图片入门 Python at 2012年04月17日

    #3 楼 @lgn21st 我尝试过 Django,是没有 Rails 用起来爽。

  • jQuery 的 unload () 失效 at 2012年04月16日

    #5 楼 @doitian 你好,onbeforeunload 这个方法只能执行 return 吗,我可以在里边写$.get(url) 之类的语句吗?

  • GitHub 上第一火爆的语言是什么? at 2012年04月12日

    #1 楼 @lgn21st 恩,是。我看错了...看成 popular 了,越来越浅薄了。唉. it says:https://github.com/languages/JavaScript

  • 我的 linode 今天打不开了, 大家有出现吗? at 2012年04月12日

    #35 楼 @mouse_lin 哈哈,校园网,无压力。

  • 正则表达式求解. at 2012年04月10日

    #7 楼 @clearJiang 哇,大牛们好牛逼。我得好好学学. #3 :@.+?\b #7 :(?<=@)\S+

  • 正则表达式求解. at 2012年04月10日

    #3 楼 @hooopo 谢谢!(http://rubular.com/r/QAFzUu1PEq)

    #4 楼 @hhuai 你好,无法取 1...http://rubular.com/r/dKfCZnQNPc

  • 正则表达式求解. at 2012年04月10日

    #1 楼 @hhuai 你好,这样最后会有个空格。因为有种情况:*@张三 * 之后就什么都没了。

  • assets:precompile 在 i5 上面用了 87s at 2012年04月09日

    大牛~ 昨天昨天搞了个 octopress, 里边有个方法 rake generate. 此方法可以先检查 sass 等样式是否改变,然后再生成内容. 我刚看了以下。发现: system "compass compile --css-dir #{source_dir}/stylesheets" may that will help.

  • rails 里怎么实现像 Timer 一样的功能? at 2012年04月09日

    #1 楼 @huacnlee #2 楼 @jokry #3 楼 @clc3123 非常感谢。

  • Linux 新手请问 Ubuntu 安装到问题 at 2012年04月09日

    前两天才碰到了这么个问题。你确定你联网了?

  • 悲催,数据库被删,博客被格式化 at 2012年04月09日

    昨天才搞了个 github page.哈哈。

  • 想在大连搞搞, 看看有没有人? at 2012年04月06日

    我在大连!yoohuu

  • @ 自動補全做了個 gem 包 :) at 2012年04月06日

    #11 楼 @ichord 你好,其实中文是可以的...貌似 ruby-china 源码里的 markdown.rb 这个文件里的 link_mention_user 方法。里边的正则匹配只能匹配英文不能匹配中文. 而你的是可以的。

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