![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
rails
kimdone
这个作者很懒,什么都没留下…
展开
-
rails 3 thin nginx 部署
本着日行一善的原则,今天把直接thin 跑的rails 3 站点部署到nginx上了。 最初的想法使用passenger和ree+nginx,结果可耻的失败了,原因和gems的load路径有关系,把load_path解决了,结果说正常的程序有问题。本着拿得起放的下的原则,放弃使用passenger,决定采用thin。 我的系统是rhel 5 先装nginx, 通过 cat /etc/*...原创 2012-05-18 16:01:30 · 85 阅读 · 0 评论 -
simple_form 中使用jquery datepicker
环境: windows 7 professional rails 3.2.2 ruby 1.9.3p125 simple_form(2.0.4) bootstrap-sass 2.1.0 目标: 在simple_form中对date类型的filed可以使用以下tag =t.input :date_field, :as=>:datepicker 具体操作: 1. 建立 /a...原创 2012-10-17 12:32:06 · 305 阅读 · 0 评论 -
restart thin on windows using batch
问题:nginx 作为反向代理, thin 开了3个进程, 在production 模式下需要重启。为了保证网站一直可用,分别需要逐个重启。windows不支持linux下的restart。 解决办法:batch 思路:通过端口找到pid,然后强行taskkill 之, 重新启动。 代码: FOR /F "tokens=5 delims= " %%P IN ('netstat -a...原创 2012-07-26 16:12:09 · 99 阅读 · 0 评论