<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>kee (keffee)</title>
    <link>https://ruby-china.org/kee</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>Nginx ＋ passenger 访问时提示 support-binaries/PassengerAgent": Permission denied (errno=13)</title>
      <description>&lt;p&gt;Cannot execute "/root/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/passenger-5.0.15/buildout/support-binaries/PassengerAgent": Permission denied (errno=13)&lt;/p&gt;

&lt;p&gt;nginx 使用 passenger-install-nginx-module 安装
nginx 配置了 passenger enable
bundle install 后请求报错，运行 bundle 时提示不要用 root 来安装，跟这个有关系吗&lt;/p&gt;</description>
      <author>kee</author>
      <pubDate>Thu, 13 Aug 2015 16:26:53 +0800</pubDate>
      <link>https://ruby-china.org/topics/26912</link>
      <guid>https://ruby-china.org/topics/26912</guid>
    </item>
    <item>
      <title>cannot load such file -- bundler/setup (LoadError)，求助</title>
      <description>&lt;p&gt;猜测是 gemsets 路径不统一导致的 cannot load such file -- bundler/setup (LoadError)&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;**gem env**
- GEM PATHS:
     - /home/vagrant/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0
     - /home/vagrant/.gem/ruby/2.2.0
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;运行 gem list 只有最基本几个 gem（/home/vagrant/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0），但是 bundle list 确有 rails 需要的所有 gem（/home/vagrant/.gem/ruby/2.2.0），执行 bundle install 也没有什么可安装了&lt;/p&gt;

&lt;p&gt;浏览器访问，提示错误找不到 bundler／setup
需要怎么搞呢？？在线等&lt;/p&gt;</description>
      <author>kee</author>
      <pubDate>Mon, 10 Aug 2015 00:06:55 +0800</pubDate>
      <link>https://ruby-china.org/topics/26844</link>
      <guid>https://ruby-china.org/topics/26844</guid>
    </item>
    <item>
      <title>Vagrant (NFS) 启动时报错：没有找到 /etc/init.d/nfs 和 rpcbind</title>
      <description>&lt;p&gt;使用的 CentOS7.1，nfs 可以通过 systemctl 启动
要怎么搞这个启动脚本（init.d/nfs 和 rpcbind），或者修改 vagrant 使用 service nfs restart
&lt;strong&gt;紧急求助!!&lt;/strong&gt; &lt;/p&gt;</description>
      <author>kee</author>
      <pubDate>Fri, 07 Aug 2015 09:57:53 +0800</pubDate>
      <link>https://ruby-china.org/topics/26806</link>
      <guid>https://ruby-china.org/topics/26806</guid>
    </item>
    <item>
      <title>Vagrant (CentOS7.1) 里，Nginx＋Passenger 跑 Rails 很慢很慢，求解</title>
      <description>&lt;p&gt;宿主机 macbook pro 831
vagrant（2G 内存 CentOS7.1）&lt;/p&gt;
&lt;h2 id="跑rails4.2，开发环境，css／js请求为什么如此慢？NFS影响大吗？"&gt;跑 rails4.2，开发环境，css／js 请求为什么如此慢？NFS 影响大吗？&lt;/h2&gt;
&lt;p&gt;&lt;img src="https://l.ruby-china.com/photo/2015/5d5566986ec27616506ccdb2d6ed704d.jpg" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>kee</author>
      <pubDate>Thu, 06 Aug 2015 14:17:00 +0800</pubDate>
      <link>https://ruby-china.org/topics/26794</link>
      <guid>https://ruby-china.org/topics/26794</guid>
    </item>
    <item>
      <title>对已有 sqlserver 数据库进行查询、列表显示，适合用 rails 来做吗？</title>
      <description>&lt;p&gt;最近接到个项目，对客户已有 BS 系统做个简单 web 展示。
数据库是 sqlserver2000，我的开发系统是 linux，在 Virtualbox 里安装了 XP+sqlserver2000，基本环境搭好了。
接触 rails 不久，不知到是否适合这个项目？有几个问题望得到帮助&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;是否要对应 sqlserver 里的每张表建立 rails mode？&lt;/li&gt;
&lt;li&gt;Activerecord 是否支持 sqlserver？&lt;/li&gt;
&lt;li&gt;有哪些相关 gem 可以介绍下&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;--
any help will be appreciated .)&lt;/p&gt;</description>
      <author>kee</author>
      <pubDate>Tue, 04 Mar 2014 21:08:54 +0800</pubDate>
      <link>https://ruby-china.org/topics/17662</link>
      <guid>https://ruby-china.org/topics/17662</guid>
    </item>
    <item>
      <title>How to running faye with Passenger?</title>
      <description>&lt;p&gt;&lt;a href="https://github.com/faye/faye-websocket-ruby" rel="nofollow" target="_blank"&gt;https://github.com/faye/faye-websocket-ruby&lt;/a&gt; 查到&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You do not need any special configuration to make faye-websocket work, it should work out of the box on Passenger provided you use at least Passenger 4.0.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You do not need any special configuration, 这这...要怎么搞（以 rubychina 代码为例子）？&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;更改 config.yml 的 yafe_server 为 80 口？&lt;/li&gt;
&lt;li&gt;删除 faye_server/config.ru 里的 Faye::WebSocket.load_adapter('thin')&lt;/li&gt;
&lt;/ul&gt;</description>
      <author>kee</author>
      <pubDate>Sun, 02 Mar 2014 15:32:43 +0800</pubDate>
      <link>https://ruby-china.org/topics/17606</link>
      <guid>https://ruby-china.org/topics/17606</guid>
    </item>
    <item>
      <title>怎么在 action 里把通过 render_cell 渲染的部分 html 作为 ajax 响应，实现局部刷新？</title>
      <description>&lt;p&gt;想通过$.ajax 获取 render_cell 的响应，发现是 object
怎么在 action 里把通过 render_cell 渲染的部分 html 作为 ajax 响应，实现局部刷新？&lt;/p&gt;</description>
      <author>kee</author>
      <pubDate>Wed, 26 Feb 2014 13:54:51 +0800</pubDate>
      <link>https://ruby-china.org/topics/17496</link>
      <guid>https://ruby-china.org/topics/17496</guid>
    </item>
    <item>
      <title>ruby-china 是怎么样引用 bootstrap 的</title>
      <description>&lt;p&gt;看到 Gemfile 里有&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;gem 'anjlab-bootstrap-rails', '3.0.3.0', require: 'bootstrap-rails'&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;怎么 app/assets/sytlesheets 里还有 bootstrap.scss，而且还有执行权限呢？&lt;/p&gt;</description>
      <author>kee</author>
      <pubDate>Thu, 20 Feb 2014 09:43:07 +0800</pubDate>
      <link>https://ruby-china.org/topics/17363</link>
      <guid>https://ruby-china.org/topics/17363</guid>
    </item>
    <item>
      <title>Sidekiq Enqueued 里只有 1 个任务为什么不执行呢？</title>
      <description>&lt;p&gt;&lt;img src="//l.ruby-china.com/photo/2014/71aeaa5cd6ef97a35e9399b2787ac5ea.png" title="" alt=""&gt;
对 sidekiq 有几个疑问，&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;上图有一个在队列中，为什么不开始执行呢？&lt;/li&gt;
&lt;li&gt;workers 是否应该显示 app/workers 内的类？&lt;/li&gt;
&lt;li&gt;config.autoload_paths += %W(#{Rails.root}/app/workers)   是否有必要添加？&lt;/li&gt;
&lt;/ol&gt;</description>
      <author>kee</author>
      <pubDate>Wed, 19 Feb 2014 10:19:56 +0800</pubDate>
      <link>https://ruby-china.org/topics/17346</link>
      <guid>https://ruby-china.org/topics/17346</guid>
    </item>
    <item>
      <title>sidekiq log 疑惑？</title>
      <description>&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;PygmentsWorker&lt;/span&gt;
  &lt;span class="kp"&gt;include&lt;/span&gt; &lt;span class="no"&gt;Sidekiq&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="no"&gt;Worker&lt;/span&gt;
  &lt;span class="n"&gt;sidekiq_options&lt;/span&gt; &lt;span class="ss"&gt;queue: &lt;/span&gt;&lt;span class="s2"&gt;"high"&lt;/span&gt;
  &lt;span class="c1"&gt;# sidekiq_options retry: false&lt;/span&gt;

  &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;perform&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;snippet_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="c1"&gt;# hard work&lt;/span&gt;
  &lt;span class="k"&gt;end&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$sidekiq&lt;/span&gt; &lt;span class="nt"&gt;-C&lt;/span&gt; config/sidekiq.yml &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="nt"&gt;-L&lt;/span&gt; log/sidekiq.log &lt;span class="nt"&gt;-P&lt;/span&gt; tmp/pids/sidekiq.pid
&lt;span class="nv"&gt;$rails&lt;/span&gt; c
&lt;span class="nv"&gt;$PygmentsWorker&lt;/span&gt;.perform_async&lt;span class="o"&gt;(&lt;/span&gt;3&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;为什么 sidekiq.log 只在&lt;code&gt;sidekiq -C config/sidekiq.yml -d -L log/sidekiq.log -P tmp/pids/sidekiq.pid&lt;/code&gt;时写入，调用&lt;code&gt;PygmentsWorker.perform_async(3)&lt;/code&gt;时不写入任何东西？
sidekiq 异步执行的 code 如何 debugger？&lt;/p&gt;</description>
      <author>kee</author>
      <pubDate>Tue, 18 Feb 2014 13:08:00 +0800</pubDate>
      <link>https://ruby-china.org/topics/17331</link>
      <guid>https://ruby-china.org/topics/17331</guid>
    </item>
    <item>
      <title>如何用 carrierwave 把已有的文件传到 store (云端)？？</title>
      <description>&lt;p&gt;在服务器生成的文件，想移到 carrierwave 的 store（用的七牛）
carrierwave 应该有现成的方法做这事吧？&lt;/p&gt;</description>
      <author>kee</author>
      <pubDate>Mon, 17 Feb 2014 09:39:53 +0800</pubDate>
      <link>https://ruby-china.org/topics/17296</link>
      <guid>https://ruby-china.org/topics/17296</guid>
    </item>
    <item>
      <title>carrierwave：清空 public/uploads/tmp 后，再上传文件不会在存储到这里了？？</title>
      <description>&lt;blockquote&gt;
&lt;p&gt;By default, CarrierWave copies an uploaded file twice, first copying the file into the cache, then copying the file into the store. &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;清空了 public/uploads/tmp，再上传图片，为什么这里不出现了 (first copying the file into the cache)？？代码没动过&lt;/p&gt;</description>
      <author>kee</author>
      <pubDate>Sun, 16 Feb 2014 14:58:46 +0800</pubDate>
      <link>https://ruby-china.org/topics/17289</link>
      <guid>https://ruby-china.org/topics/17289</guid>
    </item>
    <item>
      <title>sidekiq run in background？？</title>
      <description>&lt;blockquote&gt;
&lt;p&gt;$bundle rake sidekiq /config/sidekiq.yml&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;这样运行 sidekiq 不能关闭 CLI，也就没法断开 VPS 链接
查到&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;$bundle exec sidekiq -d （&lt;a href="http://stackoverflow.com/questions/14790727/how-to-detach-sidekiq-process-once-started-in-terminal/16263330#16263330" rel="nofollow" target="_blank"&gt;http://stackoverflow.com/questions/14790727/how-to-detach-sidekiq-process-once-started-in-terminal/16263330#16263330&lt;/a&gt;）&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;报出：invalid option: -d，看了下--help 确实没有-d&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;-q, --queue QUEUE[,WEIGHT]...    Queues to process with optional weights
    -v, --verbose                    Print more verbose output
    -e, --environment ENV            Application environment
    -t, --timeout NUM                Shutdown timeout
    -g, --tag TAG                    Process tag for procline
    -r, --require [PATH|DIR]         Location of Rails application with workers or file to require
    -c, --concurrency INT            processor threads to use
    -P, --pidfile PATH               path to pidfile
    -C, --config PATH                path to YAML config file
    -V, --version                    Print version and exit
    -h, --help                       Show help&lt;/p&gt;
&lt;/blockquote&gt;</description>
      <author>kee</author>
      <pubDate>Fri, 24 Jan 2014 09:51:12 +0800</pubDate>
      <link>https://ruby-china.org/topics/16964</link>
      <guid>https://ruby-china.org/topics/16964</guid>
    </item>
  </channel>
</rss>
