Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
清
@cyrusinshanghai
会员
第 6618 位会员 / 2013-04-10

[email protected]
上海
1 篇帖子 / 8 条回帖
0 关注者
0 正在关注
0 收藏
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • [上海][2013年7月2日] Ruby Tuesday 活动召集 at 2013年07月02日

    哎呀,我来不了,晚上加班~~ 真心想跟各位 ruby enginner 交流交流~ 啊啊啊啊啊

  • nginx+passenger 部署 rails3.0 ruby1.9 不知道怎么从 development 切到 production 模式 at 2013年07月01日

    啊,看起来可以了~ 谢谢楼上各位。我总结一下: 使用 nginx+passenger 部署 rails 1、默认为 production 模式 2、在部署前要在 rails 工程目录下运行 rake assets:precompile RAILS_ENV=production 另外:如果有一些独立链接,需要在 config/environments/目录下的 production.rb 文件中添加如: config.assets.precompile += ['bigbanner.js', 'news.js'] 的语句,加入到 precompile 中

    再次谢谢各位的热心~

  • nginx+passenger 部署 rails3.0 ruby1.9 不知道怎么从 development 切到 production 模式 at 2013年07月01日

    shell:/opt/wwwroot/demo_v2/app/assets/javascripts$ ls application.js inner.js.coffee lv2s.js.coffee lv4s.js.coffee news.js bigbanner.js lv1s.js.coffee lv3s.js.coffee main_page.js.coffee 我在 javascripts 里面是这么加入 js 的

  • nginx+passenger 部署 rails3.0 ruby1.9 不知道怎么从 development 切到 production 模式 at 2013年07月01日

    #6 楼 @ZombieCoder 我按照这个步骤做了,还是打不开,不过我看到了 log 里面有写,是因为一个 js 没有预编译。请问如果我单独写一个 js 文件,怎么能够编译呢? 我的 Log 如下:

    Processing by MainPageController#index as HTML Rendered main_page/index.html.erb within layouts/application (24.5ms) Completed 500 Internal Server Error in 76ms

    ActionView::Template::Error (bigbanner.js isn't precompiled): 4:

    鏄淇℃伅 5: <%= stylesheet_link_tag "application", :media => "all" %> 6: <%= javascript_include_tag "application" %> 7: <%= javascript_include_tag "bigbanner" %> 8: <%= javascript_include_tag "news" %> 9: <%= csrf_meta_tags %> 10: app/views/layouts/application.html.erb:7:in `app_views_layouts_application_html_erb_3036974846057913139_38240960'
  • nginx+passenger 部署 rails3.0 ruby1.9 不知道怎么从 development 切到 production 模式 at 2013年07月01日

    #1 楼 @quakewang 原来不用设置 rails_env 就是 production 了。非常感谢,但是我添加了 rails_env production,没法访问了!~

    是不是 rails 那边要 production 需要敲一些命令啊??

  • nginx+passenger 部署 rails3.0 ruby1.9 不知道怎么从 development 切到 production 模式 at 2013年07月01日

    #3 楼 @ashchan 嗯嗯 这个我做了 然后 rails_env production;就没法访问网站了

  • nginx+passenger 部署 rails3.0 ruby1.9 不知道怎么从 development 切到 production 模式 at 2013年07月01日

    哦哦,我安装之后,在 server 里面写了设置 rails_env 为 development,是从一个资料里面看的,然后我把它修改为 rails_env 为 production,没法访问网站了

  • 能谈谈你们现在的服务器环境和部署方式吗? at 2013年07月01日

    各位大侠,小弟使用 nginx+passenger 部署 rails3+ruby1.9 不知道怎么把 development 状态切到 production 状态

    把 nginx 中的 server 里面改成 production,然后无法访问了

    请问这个部署方式下面,怎么进行 production 啊?需要做哪些操作呢??

    期盼回复

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