首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >"bundle exec thin start -C config/thin.yml“不启动thin

"bundle exec thin start -C config/thin.yml“不启动thin
EN

Stack Overflow用户
提问于 2016-08-08 08:52:42
回答 1查看 607关注 0票数 3

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

代码语言:javascript
复制
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

代码语言:javascript
复制
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迁移中

代码语言:javascript
复制
bundle exec thin start -C config/thin.yml &

返回

代码语言:javascript
复制
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代码中有一些错误

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-08-08 09:02:52

您需要通过添加demonizeproduction中运行&。试试这个:

代码语言:javascript
复制
RAILS_ENV=production bundle exec thin start -C config/thin.yml &
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38824908

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档