gpt4 book ai didi

ruby-on-rails - "bundle exec thin start -C config/thin.yml"没有启动瘦

转载 作者:行者123 更新时间:2023-12-04 06:26:49 27 4
gpt4 key购买 nike

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

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

最佳答案

您需要通过添加 &demonize thin 以在production 中运行它。试试这个:

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

关于ruby-on-rails - "bundle exec thin start -C config/thin.yml"没有启动瘦,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38824908/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com