ruby-on-rails – 为Ruby on Rails应用程序重新启动Thin时出错

我试图使用folling命令重新启动瘦.
thin restart -c config/thin.yml

这是thin.yml的内容

rackup: /root/SEHabitat/config.ru
pid: /tmp/pids/thin.pid
wait: 30
timeout: 600
log: /root/SEHabitat/log/thin.log
max_conns: 1024
require: []

max_persistent_conns: 512
environment: production
servers: 3
daemonize: true
#chdir: /root/SEHabitat
socket: /tmp/thin.sock
#port: 3000

这是输出

/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:171:in `chdir': Not a directory - /root/SEHabitat/config/thin.yml (Errno::ENOTDIR)
from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:171:in `run_command'
from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:151:in `run!'
from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/bin/thin:6
from /usr/bin/thin:19:in `load'
from /usr/bin/thin:19

解决方法

选项“-c”是更改dir,您必须使用upercase“-C”来指定配置文件. LIke瘦配置-C /etc/thin/myapp.yml -c / var /

相关文章

validates:conclusion,:presence=>true,:inclusion=>{...
一、redis集群搭建redis3.0以前,提供了Sentinel工具来监控各...
分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣...
上一篇博文 ruby传参之引用类型 里边定义了一个方法名 mo...
一编程与编程语言 什么是编程语言? 能够被计算机所识别的表...
Ruby类和对象Ruby是一种完美的面向对象编程语言。面向对象编...