【问题标题】:Error When Restarting Thin for my Ruby on Rails Application为我的 Ruby on Rails 应用程序重新启动 Thin 时出错
【发布时间】:2012-03-07 13:49:17
【问题描述】:

我正在尝试使用以下命令重新启动瘦。

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

【问题讨论】:

  • 显示config/thin.yml的内容
  • 我已经编辑显示thin.yml的内容,谢谢!

标签: ruby-on-rails nginx thin


【解决方案1】:

选项“-c”是改变目录,你必须使用大写的“-C”来指定配置文件。喜欢thin config -C /etc/thin/myapp.yml -c /var/

【讨论】:

    猜你喜欢
    • 2010-09-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-27
    • 1970-01-01
    • 2014-03-13
    • 2015-05-07
    • 2020-04-12
    相关资源
    最近更新 更多