Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Eric-Guo
@ericguo
VIP
NO. 1665 / 2012-03-31

[email protected]
天华建筑设计
上海
45 Topics / 1372 Replies
180 Followers
244 Following
74 Favorites
选Ruby是符合我爱钱爱金爱宝石气质的…
GitHub Public Repos
  • wechat 1326

    API, command and message handling for WeChat in Rails

  • wechat-starter 351

    WeChat web app with wx_pay in rails

  • tailwindcss-jit-stimulus 19

    A template with Rails 7.1, Shakapacker 7.2, TailwindCSS 3 and Stimulus 3.0

  • coreui4-rails-starter 12

    The CoreUI 4 Rails starter

  • pgac_demo 11

    Rails 7.1 Action Cable chat room using AnyCable as backend

  • product_hunt 5

    Demonstrate new Rails 5.1 feature: Assets on Yarn, System tests with Capybara and unified form_wi...

  • openproject 2

    OpenProject is the leading open source project management software.

  • dify-ruby-sdk 2

  • rails 1

    Ruby on Rails

  • homeland 1

    :circus_tent: An open source forum/community system based on Rails, developed based on Ruby China.

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 初学 rails 到底学习哪个版本好,网上资源最多的是 3.2 的,官方最新的是 4.1 的? at May 05, 2014

    #31 楼 @yfractal 如果现在某个 gems 还不支持 rails 4 那就说明你根本不应该继续使用它。。。

    当然有能力继续维护并 PR 到官方 gems 的请无视上面一句话。

  • [解决 100%] 跟着《Ubuntu 12.04 上使用 Nginx Passenger 部署 Ruby on Rails》熟悉部署流程 at May 04, 2014

    楼主删掉重新部署吧

  • 请教 ActiveRecord 高手 at April 27, 2014

    includes 可以包括其他 model 的数据的,而且也没有人阻止你用SQL啊。。

  • RailsConf 2014 DHH 做的开幕主题演讲视频 at April 27, 2014

    可以拉到 7:38 开始。。

  • 为什么 Ruby China 论坛上一直让大家不让用 Windows 开发? at April 25, 2014

    Windows 下虽然 Ruby 略坑,但也不是不能用,我已经用了 2 年了,有啥问题楼主不妨抛出来看看能否一起解决? 官方 2.1,Windows 下 2.0 的问题是因为 rubyinstaller 作者 port 2.1.0 的时候发现了问题,递交到 ruby truck 的时候 2.1 已经是 maintain 分支了。 总之二等支持是一定的,不过还没到不能用的地步。

  • DHH: TDD is dead. Long live testing. at April 23, 2014

    Give Capybara a spin today, and you'll have a good idea of where we're heading tomorrow.

    D 大神钦点 Capybara 啦!

  • 使用《every rails testing with Rspec》遇到的问题 at April 23, 2014

    #3 楼 @runup 没有笑话的意思,因为我也经常被迫自问自答。。

  • 使用《every rails testing with Rspec》遇到的问题 at April 23, 2014

    自问自答的都是高手 😄

  • 通用简单的事务工单系统? at April 21, 2014

    花了 30 分钟整了一下,现在 gems 是目前最新的了。

  • 通用简单的事务工单系统? at April 21, 2014

    推荐一下我的电子表单项目,楼主你只要用,有问题给我开 issue,能力范围内一定支持。

    PPT 在这里 (需翻墙)

  • cap 部署时,releases 中生成的目录名是时间戳,但是不是东八区,而是 0 时区 at April 20, 2014

    #2 楼 @kgen 我决定不提了。。

  • cap 部署时,releases 中生成的目录名是时间戳,但是不是东八区,而是 0 时区 at April 20, 2014

    #1 楼 @Rei 看了一下:

    env.rb 取了 timestamp

    def release_timestamp
        env.timestamp.strftime("%Y%m%d%H%M%S")
    end
    

    configuration.rb 生成的时候的确是 UTC

    def timestamp
        @timestamp ||= Time.now.utc
    end
    

    所以将本机的 configuration.rb 文件里面 80 行.utc 删掉就是本地时间了(也许我应该考虑给他们提个 pull request?) :😄:

  • 部署完成后访问 403 Forbidden at April 20, 2014

    #8 楼 @xautjzd 我在 512MB 机器上 Ubuntu 12.04 肯定是有成功经验的,然后有人在 CentOS 6.4 上也是成功搞出 Passenger 4 的,至于你,还是自行选择放弃不放弃 CentOS 吧。。。:😄:

  • 部署完成后访问 403 Forbidden at April 20, 2014

    先等等切,再试一下加一下虚拟内存试一把:

    sudo dd if=/dev/zero of=/swap bs=1M count=1024
    sudo mkswap /swap
    sudo swapon /swap
    
  • 部署完成后访问 403 Forbidden at April 20, 2014

    总算找到了CentOS的了:

    The RPMs are currently unmaintained. As such, the repository only contains Phusion Passenger 3.x (the latest version is 4.x), which did not support Node.js, Meteor, multiple Rubies, etc. For more recent versions of Phusion Passenger, you are suggested to install from gem or tarball instead.

    也就是说,如果你用 3.x,不要配 rvm,也最好不要用 ruby 2.0,或者还是老老实实从 gem/tarball 编译。

  • 部署完成后访问 403 Forbidden at April 20, 2014

    我觉得你还下定决心换 Ubuntu 算了,查了下官网,passenger 也没 centos 的资料,当然如果你是编译达人或者有能力从 source code build 整套 web stack,其实用啥系统真的无所谓,不过明显你也是苦手。。。

  • 部署完成后访问 403 Forbidden at April 20, 2014

    passenger 3.0.12 出来的时候,ruby 可能 1.9.3 都还没出,而你还要求 passenger 3 的版本支持 ruby 2.0。。。你这个问题看起来是权限问题,不过我觉得就算 passenger 作者来了,也没法给你解,只会让你用新版本啊!

  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

    #28 楼 @xautjzd 没事不要改默认配置,除非你确信你在干嘛。。还有你要先删除 CentOS 的 passenger 再装。

  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

    #26 楼 @xautjzd 如果编译安装 passenger,配置文件默认在/opt/nginx/conf/,你看到的配置文件都是之前的。。

  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

    #24 楼 @xautjzd 看起来你快爬出坑了,现在就缺解决权限问题了,无论如何,欢迎来到 Ruby 的世界。。

  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

    #15 楼 @xautjzd 其实目前 rails 最佳部署环境是 Ubuntu 12.04 LTS。。。

  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

    #16 楼 @xautjzd passenger?不是一找一大把么?。。

    In Phusion Passenger 4, using SetEnv and PassEnv in Apache and env in Nginx works as expected. Detailed information can be found in the Phusion Passenger manual, section “About environment variables”.

    http://blog.phusion.nl/2008/12/16/passing-environment-variables-to-ruby-from-phusion-passenger/

  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

    #15 楼 @xautjzd sudo su -成为 root 先。。。

  • Rails AES 加密后用 php 解密不了 at April 20, 2014

    #1 楼 @night_song 赞!这个解答我要记下来!

  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

    #9 楼 @xautjzd 先删掉 ngingx-passenger,然后通过gem install passenger && passenger-install-nginx-module 安装 passenger,然后再做文档的步骤。

  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

    这是同一台机器么。。。啥操作系统?Ubuntu 照理不会发生这样的情况啊。。

  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

    #4 楼 @xautjzd 可是明明是 1.8 的目录。。

    5   /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/utils.rb     326     in `prepare_app_process'
    
  • Gemfile syntax error compile error on line 19: syntax error, unexpected ':', expecting $end gem 'therubyracer', platforms: :ruby ^ (Bundler::GemfileError) at April 20, 2014

    访问了你的主页,你的 ruby 版本太低,升到 ruby 2.0.0 p 451 应该就可以解决问题,另外 passenger 的版本也太低,现在早已是 4.0.41 版本啦!

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