繁体   English   中英

“bundle exec thin start -C config / thin.yml”并没有开始变薄

[英]“bundle exec thin start -C config/thin.yml” does not start thin

试图将rails应用程序部署到服务器我面临的问题是,当我尝试使用cap production deploy:start时,'瘦'不会出星。 真正奇怪的是,它没有任何错误。 在此之后,我尝试在deplyment服务器上执行此操作

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

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

你需要通过添加&demonize瘦以便在production运行它。 尝试这个:

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM