Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
rr
@sensi
会员
第 11295 位会员 / 2014-01-28

开封
21 篇帖子 / 81 条回帖
0 关注者
1 正在关注
9 收藏
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 部署后输入网址出现这样的东西 at 2015年03月21日

    #7 楼 @hmilym 怎么看

  • 部署后输入网址出现这样的东西 at 2015年03月21日

    #4 楼 @xiaogui 我试了试 还是一样不成功。按照你的理解,网址后面的那个是固定的写法,不是我的项目名称!但是依然不能成功

  • 部署后输入网址出现这样的东西 at 2015年03月21日

    #1 楼 @xiaogui

    user root
    worker_processes 4;
    pid /var/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
            ##
    
            # include /etc/nginx/naxsi_core.rules;
    
            ##
            # Phusion Passenger config
            ##
            # Uncomment it if you installed passenger or passenger-enterprise
            ##
    
             passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;
             passenger_ruby /home/root/.rvm/wrappers/default/ruby;
    
            ##
            # Virtual Host Configs
            ##
    
            include /etc/nginx/conf.d/*.conf;
            include /etc/nginx/sites-enabled/*;
    }
    
    
    # mail {
    #       # See sample authentication script at:
    #       # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
    #
    #       # auth_http localhost/auth.php;
    #       # pop3_capabilities "TOP" "USER";
    #       # imap_capabilities "IMAP4rev1" "UIDPLUS";
    #
    #       server {
    #               listen     localhost:110;
    #               protocol   pop3;
    #               proxy      on;
    #       }
    #
    #       server {
    #               listen     localhost:143;
    #               protocol   imap;
    #               proxy      on;
    #       }
    # }
    

    nginx.conf 的配置

  • 部署后输入网址出现这样的东西 at 2015年03月21日

    #1 楼 @xiaogui

    server {
    listen 80 default;
    server_name boosor.com;
    root /var/www/example.com/feed/public;
    passenger_enabled on;
    rails_env production;
    }
    
  • 生产环境的部署问题 at 2015年03月21日

    为什么 server 里面写成了 rails_env development;

  • 感觉部署有困难的小伙伴请查看 RailsCasts 视频——Deploying to a VPS(需 Pro 账号) at 2015年03月21日

    #2 楼 @xiaogui 帮我看个问题吧,为什么部署完之后 nginx 成功了,就是连不上项目呢?https://ruby-china.org/topics/24768

  • 生产环境的部署问题 at 2015年03月21日

    #6 楼 @davidminaki 你怎么不用 nginx 管理启动呀?

  • rails 部署后 页面布局乱掉了 at 2015年03月21日

    部署教程 有没有??

  • rails 部署后 页面布局乱掉了 at 2015年03月21日

    rake assets:precompile

  • 感觉部署有困难的小伙伴请查看 RailsCasts 视频——Deploying to a VPS(需 Pro 账号) at 2015年03月21日

    没有 pro 账号呀!

  • 你们更换成 taobao 的 gem 后 fetching 显示的是什么? at 2015年03月19日

    #4 楼 @liwei78 http://ruby.taobao.org/看着里

  • 你们更换成 taobao 的 gem 后 fetching 显示的是什么? at 2015年03月19日

    #1 楼 @night_7th 没有!

  • ActiveRecord 读取记录问题... at 2015年03月11日

    #4 楼 @yu3h40 请教一个问题。current 是一个实例变量,each 方法难道不是遍历数组和哈希的方法吗,这里怎么行得通的?

  • 《提问的智慧》 at 2015年03月07日

    非常感谢这个帖子,谢谢!

  • strong parameters 的参数传递问题 at 2015年03月06日

    #3 楼 @lyfi2003 糗大了 谢谢你!

  • strong parameters 的参数传递问题 at 2015年03月06日

    #1 楼 @flowerwrong product_id 能传递了 但是提示了同样地错误 undefined method `premit' for {"title"=>"helo", "content"=>"helo", "product_id"=>"1"}:ActionController::Parameters

    private
           def article_params
               params.require(:article).premit(:title, :content, :product_id)
    end
    
  • 寻求伙伴一起学习 Ruby on Rails at 2015年02月11日

    建个群吧!!

  • 嵌套路由下地表单提交不成功 at 2015年02月10日

    #7 楼 @blacktulip https://github.com/interestudy/feed 这个

  • 嵌套路由下地表单提交不成功 at 2015年02月05日

    #1 楼 @blacktulip 然后提示 undefined method `articles' for nil:NilClass

  • 嵌套路由下地表单提交不成功 at 2015年02月05日

    #3 楼 @cysh这个地方有写法 http://guides.ruby-china.org/form_helpers.html

  • 嵌套路由下地表单提交不成功 at 2015年02月05日

    #2 楼 @yangman_wenzhu 想知道这些知识点在哪里,我在 guides 里也没找到这些复杂的方法 api 里没见呀!

  • Ruby 导出 CSV 文件中文乱码,纠结了好久好久 at 2015年02月04日

    #16 楼 @Lucifer 帮我看看这个问题啊 大神https://ruby-china.org/topics/24121

  • ListentoMe: 一次极小的产品实践 at 2015年01月30日

    这个我做过。我比你走了远一步,我记录了一个月对一个女孩的思念,最后发给他看 (本来想搞成匿名的),我靠,没有我想象的那样感动。

  • Rails 3.0.5 下 rake 不能工作,怎么破? at 2015年01月14日

    #1 楼 @Rei 真棒,我咋没想到呢!

  • 生成指定版本的 Rails 项目 at 2015年01月14日

    rails3.0.5 不能使用 rake 怎么破?现在 rake 默认版本是 0.9.6

  • Railscasts China 为啥都没见更新了啊? at 2015年01月14日

    #3 楼 @googya 你咋说的我有点怕怕的 还没学会呢 都日薄西山 命不久矣!

  • Railscasts China 为啥都没见更新了啊? at 2015年01月14日

    #1 楼 @huhongda 最晚的一次更新是 13 年 10 月份,难道 ruby 不再给力了!

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