Ruby on rails &引用;bundle exec thin start-C config/thin.yml;一开始并不稀薄

Ruby on rails &引用;bundle exec thin start-C config/thin.yml;一开始并不稀薄,ruby-on-rails,capistrano,thin,Ruby On Rails,Capistrano,Thin,在尝试将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 .

在尝试将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
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代码中有一些错误

您需要通过添加
&
thin妖魔化,以便在
生产中运行它。试试这个:

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

你能显示production.log的内容吗?我已经更新了答案。请在命令末尾添加
&
。之后是:
在/home/deployer/app/current/tmp/sockets/thin.0.sock上启动服务器。。。正在/home/deployer/app/current/tmp/sockets/thin.1.sock上启动服务器…'bundle exec thin start-C confi…'已结束