Problemi di registrazione - Rails Heroku / Foreman in Dev
-
28-10-2019 - |
Domanda
Mi sembra di avere un problema molto strano ... sto cercando di sviluppare un'app Rails da distribuire su Heroku usando Unicorn - in quanto tale sto usando Foreman nel mio ambiente di sviluppo locale per cercare di replicare la produzione il più da vicino possibile.
Come ti aspetteresti, il mio Web/Worker elabora l'output per il file Sviluppo.log nel percorso/a/app/log. Se vado al file, contiene Tutto quello che ti aspetteresti.
Tuttavia Se uso il comando
tail -f log/development.log
(dal percorso dell'app), ottengo l'output di registro da Heroku!! Com'è possibile? (per esempio):
app[web.1]: [Worker(host:xxxx-xxx-xxx pid:5)] Starting job worker
heroku[web.1]: Idling
heroku[web.1]: Stopping process with SIGTERM
app[web.1]: I, [2012-02-19xxx-xxx-xxx #1] INFO -- : reaped #<Process::Status: pid 7 exit 0> worker=0
app[web.1]: I, [2012-02-19xxx-xxx-xxx #1] INFO -- : reaped #<Process::Status: pid 11 exit 0> worker=1
app[web.1]: I, [2012-02-19xxx-xxx-xxx #1] INFO -- : reaped #<Process::Status: pid 14 exit 0> worker=2
app[web.1]: I, [2012-02-19xxx-xxx-xxx #1] INFO -- : master complete
heroku[web.1]: Process exited with status 0
heroku[web.1]: State changed from up to down
heroku[slugc]: Slug compilation started
heroku[api]: Release v22 created by brandon@example.com
heroku[api]: Deploy xxxx by randon@example.com
heroku[slugc]: Slug compilation finished
Questo è davvero fastidioso perché non riesco a vedere correttamente il mio registro di sviluppo ... l'aiuto sarebbe apprezzato!
Soluzione
Questo non è qualcosa che il caposquadra sta facendo.
Cosa succede se guardi solo log/sviluppo.log? È lo stesso?
Hai qualche alias stravagante che potrebbe causare questo?