[英]“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.