ruby on rails 4 - Can't output log in console with foreman -


i got rails 4.2.1 app running foreman 0.78.0

whenever try use "puts" log value in console, nothing append. try googling bit found no working solution.

i tried add $stdout.sync = true in development.rb no result far (and yes restarted foreman)

since app run angularjs, tend hard debug when append on server side without log.

is there ways output log in console , fix this? know must config problem since of coworker can in same project. don't see difference between them , mine.

here output i'm able see when start foreman.

09:53:15 web.1    | started pid 68370 09:53:15 worker.1 | started pid 68371 09:53:17 web.1    | [68370] puma starting in cluster mode... 09:53:17 web.1    | [68370] * version 2.11.2 (ruby 2.2.2-p95), codename: intrepid squirrel 09:53:17 web.1    | [68370] * min threads: 1, max threads: 4 09:53:17 web.1    | [68370] * environment: development 09:53:17 web.1    | [68370] * process workers: 2 09:53:17 web.1    | [68370] * phased restart available 09:53:17 web.1    | [68370] * listening on tcp://0.0.0.0:5060 09:53:17 web.1    | [68370] use ctrl-c stop 09:53:29 web.1    | /users/myuser/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/http/mime_type.rb:163: warning: initialized constant mime::xlsx 09:53:29 web.1    | /users/myuser/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/http/mime_type.rb:163: warning: previous definition of xlsx here 09:53:29 web.1    | /users/myuser/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/http/mime_type.rb:163: warning: initialized constant mime::xlsx 09:53:29 web.1    | /users/myuser/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/http/mime_type.rb:163: warning: previous definition of xlsx here 09:53:29 worker.1 | /users/myuser/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/http/mime_type.rb:163: warning: initialized constant mime::xlsx 09:53:29 worker.1 | /users/myuser/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/http/mime_type.rb:163: warning: previous definition of xlsx here 09:53:29 web.1    | [68370] - worker 0 (pid: 68372) booted, phase: 0 09:53:29 web.1    | [68370] - worker 1 (pid: 68373) booted, phase: 0 09:53:32 worker.1 | 2015-07-14t13:53:32.801z 68371 tid-ow3bp4a9w info: running in ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14] 09:53:32 worker.1 | 2015-07-14t13:53:32.801z 68371 tid-ow3bp4a9w info: see license , lgpl-3.0 licensing details. 09:53:32 worker.1 | 2015-07-14t13:53:32.801z 68371 tid-ow3bp4a9w info: upgrade sidekiq pro more features , support: http://sidekiq.org/pro 09:53:32 worker.1 | 2015-07-14t13:53:32.801z 68371 tid-ow3bp4a9w info: booting sidekiq 3.3.4 redis options {:url=>nil} 09:53:32 worker.1 | 2015-07-14t13:53:32.801z 68371 tid-ow3bp4a9w info: starting processing, hit ctrl-c stop 

thank in advance time.

the problem wasn't foreman... after 3 hour of debuging, found out power misleading information... not sure why using symlink nothing showing in console. when tried using ip address instead worked... not sure why long has fix problem fine.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -