【问题标题】:"bundle exec thin start -C config/thin.yml" does not start thin“bundle exec thin start -C config/thin.yml”不启动瘦
【发布时间】:2016-08-08 08:52:42
【问题描述】:

在尝试将 Rails 应用程序部署到服务器时,当我尝试使用 cap production deploy:start 为它加星时,我遇到了“瘦”不加星的问题。真正奇怪的是,它没有任何错误。 在此之后,我尝试在部署服务器上执行此操作

env RAILS_ENV=production bundle exec thin start -C config/thin.yml

Starting server on /home/deployer/app/current/tmp/sockets/thin.0.sock ... 
Starting server on /home/deployer/app/current/tmp/sockets/thin.1.sock ... 

ls /home/deployer/app/current/tmp/sockets/

ps -aux | grep thin
root     16769  0.0  0.1  15468   908 pts/0    S    11:34   0:00 grep --color=auto thin

瘦.yml

chdir: /home/deployer/app/current
environment: production
timeout: 30
log: /home/deployer/app/current/log/thin.log
pid: /home/deployer/app/current/tmp/pids/thin.pid
socket: /home/deployer/app/current/tmp/sockets/thin.sock
max_conns: 1024
max_persistent_conns: 10
require: []
wait: 30
servers: 2
daemonize: true 

出了什么问题?

在 production.log 中仅迁移

bundle exec thin start -C config/thin.yml &

返回

Starting server on /home/deployer/app/current/tmp/sockets/thin.0.sock ... 
Starting server on /home/deployer/app/current/tmp/sockets/thin.1.sock ... 
'bundle exec thin start -C confi…' has ended

回答 好的,答案是 log/thin.0.log 代码中有一些错误

【问题讨论】:

  • 可以显示production.log的内容吗?

标签: ruby-on-rails capistrano thin


【解决方案1】:

您需要通过添加&production 中运行它来精简demonize。试试这个:

RAILS_ENV=production bundle exec thin start -C config/thin.yml &

【讨论】:

  • 我已经更新了我的答案。请在命令末尾添加&
  • 之后是:Starting server on /home/deployer/app/current/tmp/sockets/thin.0.sock ... Starting server on /home/deployer/app/current/tmp/sockets/thin.1.sock ... 'bundle exec thin start -C confi…' has ended
猜你喜欢
  • 2014-07-23
  • 1970-01-01
  • 2011-12-09
  • 1970-01-01
  • 1970-01-01
  • 2013-01-14
  • 2021-09-22
  • 1970-01-01
  • 2014-07-27
相关资源
最近更新 更多