2016-08-08 36 views
3

in Versuch, Schienen App auf Server zu implementieren Ich konfrontiert Problem, dass "dünne" Sterne, wenn ich versuche, es mit Cap-Produktion bereitstellen: Anfang. Was ist wirklich seltsam, als es keine Fehler hat. Danach versuche ich es auf deplyment Server tun"Bundle exec dünnen Start -C Config/thin.yml" startet nicht dünn

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 

Was schief gelaufen ist?

In production.log nur Migrationen

bundle exec thin start -C config/thin.yml & 

kehrt

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 

Antwort Okey, war Antwort log/thin.0.log gibt es einige Fehler im Code

+0

können Sie den Inhalt von production.log anzeigen? – coorasse

Antwort

1

Sie müssen demonize dünn für den Betrieb in production durch Hinzufügen & . Versuchen Sie dies:

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

es sagt "-C" Befehl nicht gefunden –

+0

Ich habe meine Antwort aktualisiert. Bitte fügen Sie '&' am Ende des Befehls hinzu. – titan

+0

Nach ist: 'Start Server auf /home/deployer/app/current/tmp/sockets/thin.0.sock ... Starten des Servers auf /home/deployer/app/current/tmp/sockets/thin.1. socke ... 'bündel exec dünne start -C confi ...' hat beendet ' –