Ruby on rails 为我的Ruby on Rails应用程序重新启动精简时出错
我正在尝试使用folling命令重新启动thinRuby on rails 为我的Ruby on Rails应用程序重新启动精简时出错,ruby-on-rails,nginx,thin,Ruby On Rails,Nginx,Thin,我正在尝试使用folling命令重新启动thin 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 environ
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”用于更改目录,您必须使用upercase“-c”来指定配置文件。如
thin config-C/etc/thin/myapp.yml-C/var/
显示config/thin.ymlI的内容已编辑以显示thin.yml的内容,谢谢!