Rails app gives error only when running via Unicorn -
i in unfortunate position of having configure machine run multiple rails applications. machine set nginx , rvm , passenger. appears pretty painful have configure multiple standalone passengers, , feels hack. want application , running, i'm going run through different port (8080) unicorn. hav? no experience with.
my application has little helper checks see if site being accessed mobile device, serves different set of views. helper has little puts statement in debug line.
when running through unicorn, puts line barfs with:
errno::eio (input/output error - <stdout>): all can think of is unable write stdout. have never seen rails app bail @ puts line before. sure should use logger, problem line in unicorn when doesn't have problem elsewhere.
the eio error indicates process trying write tty, tty gone. started unicorn terminal, let daemonize , exited terminal. setting stderr_path helps because redirects stderr (and maybe stdout too?) file.
but phusion passenger: don't have setup multiple standalone passengers anymore. since phusion passenger 4 supports multiple rubies.
Comments
Post a Comment