Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
huxinghai
@kaka
高级会员
第 310 位会员 / 2011-11-29

湖南
20 篇帖子 / 156 条回帖
5 关注者
3 正在关注
8 收藏
程序猿
GitHub Public Repos
More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • nginx + passenger 部署 rails 3.2.1 出问题求助! at 2012年02月06日

    #13 楼 @metal 还是一样...

  • nginx + passenger 部署 rails 3.2.1 出问题求助! at 2012年02月06日

    @metal

    server {
            listen       80;
            server_name  localhost;
    
            root /Users/kaka/Documents/Test/Dom1/public;   # <--- be sure to point to 'public'!
            passenger_enabled on;
            ...
            }
    

    修改 root 到另外一个项目..

  • nginx + passenger 部署 rails 3.2.1 出问题求助! at 2012年02月06日

    @metal 本来是这样的 root /Users/kaka/Documents/Test/Dom/public 我把他修改指定到另外一个项目 root /Users/kaka/Documents/Test/Dom1/public 是修改不是添加...

  • nginx + passenger 部署 rails 3.2.1 出问题求助! at 2012年02月06日

    #8 楼 @metal 我就是 root /Users/kaka/Documents/Test/Dom1/public 另外一个项目

  • nginx + passenger 部署 rails 3.2.1 出问题求助! at 2012年02月06日

    #6 楼 @metal 为什么我把 root 路径指定到别外项目路径就出现 500 错误,这是我那个项目问题吗?

  • nginx + passenger 部署 rails 3.2.1 出问题求助! at 2012年02月06日

    #4 楼 @huacnlee 谢谢!OK 了

  • nginx + passenger 部署 rails 3.2.1 出问题求助! at 2012年02月06日

    #1 楼 @metal

    user root staff;
    worker_processes  10;
    
    error_log  logs/error.log;
    pid        logs/nginx.pid;
    
    events {
        worker_connections  1024;
    }
    
    http {
        passenger_root /Users/kaka/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.10;
        passenger_ruby /Users/kaka/.rvm/wrappers/ruby-1.9.2-p290/ruby;
    
        include       mime.types;
        default_type  application/octet-stream;
    
        sendfile        on;
        keepalive_timeout  65;
    
        server {
            listen       80;
            server_name  localhost;
    
            root /Users/kaka/Documents/Test/Dom/public;   # <--- be sure to point to 'public'!
            passenger_enabled on;
            index index index.html index.htm;
    
            location ~ ^/assets/ {
              expires 1y;
              add_header Cache-Control public;
    
              add_header ETag "";
              break;
            }
    
            location  /  {
                autoindex  on;
            }
    
            error_page   500 502 503 504  /50x.html;
            location = /50x.html {
                root   html;
            }
        }
    }
    
  • 如何在 terminal 中打开 sublime text2? at 2012年02月04日

    #10 楼 @Levan 谢谢...

  • 如何在 terminal 中打开 sublime text2? at 2012年02月04日

    我也查这个问题...

  • 有谁在广东吗? at 2012年02月03日

    想去广东...

  • Ruby on Rails bundler 问题 at 2012年02月02日

    可以从http://rubygems.org/ 下载 gem 包,然后指定安装啊!

  • 大家来贴一下平常都用哪些软件吧? at 2012年01月16日

    TextMate sublime gedit

  • 姚明上场 120 分钟,狂砍了 38 分! at 2012年01月16日

    我也是球迷 !

  • [日本] 宣传下我现在就职的公司:日本 COOKPAD at 2012年01月16日

    可以啊!顶

  • 请教用 sublime text 2 的同学,有什么方法快捷输入<%= %> at 2012年01月11日

    ⌃ space

  • 提问要有方法 at 2012年01月11日

    还好没有点我的贴!

  • @users.each 这个方法里,可以调用一个计数器? at 2012年01月11日

    要学会一招!

  • rails application 在 server 上的部署? at 2012年01月11日

    nginx 现在排名第二了吧!

  • memcached 与 redis 有没有快捷启动方式 at 2012年01月05日

    设置 memcached 启动 wget http://www.joonworld.com/files/com.danga.memcached.plist sudo mv com.danga.memcached.plist /Library/LaunchDaemons/ sudo launchctl load /Library/LaunchAgents/com.danga.memcached.plist

  • nginx + passenger 配置不成功,请各位帮忙!! at 2012年01月04日

    #22 楼 @lgn21st 真的麻烦你了 重启一下 nginx 可以打开本地域 403 没有权限不知道说那个文件没权限

    2012/01/04 21:11:49 [error] 559#0: *3 "/Users/kaka/Documents/soft/neza/public/index.html" is forbidden (13: Permission denied), client: 127.0.0.1, server: kaka.local, request: "GET / HTTP/1.1", host: "kaka.local"

  • nginx + passenger 配置不成功,请各位帮忙!! at 2012年01月04日
    worker_processes  1;
    events {
        worker_connections  1024;
    }
    
    
    http {
        passenger_root /Library/Ruby/Gems/1.8/gems/passenger-3.0.11;
        passenger_ruby /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby;
    
            include       mime.types;
            default_type  application/octet-stream; 
            sendfile        on;
    
            keepalive_timeout  65;
    
        server
        {
             listen       81;
             server_name  kaka.local;
             location / {
                root   /Users/kaka/Documents/soft/neza/public;    #html;
                index  index.html index.htm;
             }
    
            error_page   500 502 503 504  /50x.html;
            location = /50x.html {
                root   html;
            }
        }
    }
    

    #22 楼 @lgn21st 已经打开本地域是 404 错误,重启一下电脑就连接不到服务器了

  • nginx + passenger 配置不成功,请各位帮忙!! at 2012年01月04日

    worker_processes 1;

    events { worker_connections 1024; }

    http { passenger_root /Library/Ruby/Gems/1.8/gems/passenger-3.0.11; passenger_ruby /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby;

    include mime.types; default_type application/octet-stream;

    sendfile on; keepalive_timeout 65;

    server { listen 81; server_name kaka.local;

    location / { root /Users/kaka/Documents/soft/neza/public; #html; #index /products/index index index.html index.htm; }

    error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } } #20 楼 @lgn21st

  • nginx + passenger 配置不成功,请各位帮忙!! at 2012年01月04日

    #18 楼 @lgn21st

    2012/01/04 16:31:57 [error] 6726#0: *23 "/Users/kaka/kaka/public#html/index.html" is not found (2: No such file or directory), client: 127.0.0.1, server: kaka.local, request: "GET / HTTP/1.1", host: "kaka.local"
    2012/01/04 16:31:57 [error] 6726#0: *23 open() "/Users/kaka/kaka/public#html/favicon.ico" failed (2: No such file or directory), client: 127.0.0.1, server: kaka.local, request: "GET /favicon.ico HTTP/1.1", host: "kaka.local"
    

    我已经改了这个 root 路径 ,为什么还会找以前 /Users/kaka/kaka/public#html/index.html 这个路径呢!我重启了 Nginx

    location / {
        root   /Users/kaka/Documents/soft/neza/public;    #html;
    #index  /products/index
        index  index.html index.htm;
    }
    
  • nginx + passenger 配置不成功,请各位帮忙!! at 2012年01月04日

    #16 楼 @lgn21st 知道改端口!只是不确认!我现在打开本地域名报 404 错误..是不是还有那里没有改好啊

  • nginx + passenger 配置不成功,请各位帮忙!! at 2012年01月04日

    #14 楼 @lgn21st 我可以改端口吗?

  • nginx + passenger 配置不成功,请各位帮忙!! at 2012年01月04日

    #11 楼 @lgn21st 刚才那个是端口占用了

  • nginx + passenger 配置不成功,请各位帮忙!! at 2012年01月04日

    #11 楼 @lgn21st 现在 sudo nginx -t 可以通过了,但是 sudo nginx 启动时出下面这种情况! nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use) nginx: [emerg] still could not bind()

  • nginx + passenger 配置不成功,请各位帮忙!! at 2012年01月04日

    #9 楼 @lgn21st 谢谢回复 我是根据这个去部署的,就是在 sudo nginx -t 测试有点问题!被卡住了,请大侠帮忙

  • nginx + passenger 配置不成功,请各位帮忙!! at 2012年01月03日

    #1 楼 @Rei 是没有正确编译吗?那要重新编译 nginx

  • 聊聊自己的编程强迫症吧~.~ at 2011年12月30日

    强迫排版

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