[英]“bundle exec thin start -C config/thin.yml” does not start thin
in attempt to deploy rails app to server I faced problem that 'thin' does't stars when I try do star it with cap production deploy:start. 试图将rails应用程序部署到服务器我面临的问题是,当我尝试使用cap production deploy:start时,'瘦'不会出星。 What is realy strange, than it hasn't any errors. 真正奇怪的是,它没有任何错误。 After this I try do it on deplyment server 在此之后,我尝试在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 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
What is gone wrong? 出了什么问题?
In production.log only migrations 在production.log中仅迁移
bundle exec thin start -C config/thin.yml &
returns 回报
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
Answer Okey, answer was log/thin.0.log there are some errors in code 回答 Okey,回答是log / thin.0.log,代码中有一些错误
You need to demonize
thin for running it in production
by adding &
. 你需要通过添加&
来demonize
瘦以便在production
运行它。 Try this: 尝试这个:
RAILS_ENV=production bundle exec thin start -C config/thin.yml &
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.