Puma - show full logs when run server with config file

前端 未结 4 2054
故里飘歌
故里飘歌 2021-02-19 03:09

I installed puma gem and when I start rails server by rails s I can see full output:

$ rails s 
/Users/serj/.rvm/gems/ruby-2.2.1@email_         


        
4条回答
  •  难免孤独
    2021-02-19 03:54

    The logs are in log/.log. So you could (in a separate tab / window) run:

    tail -f log/development.log
    

    And you'll see all your output. If you want the output from rails merged into the puma logs, you could always have rails log to STDOUT:

    config.logger = Logger.new(STDOUT)
    

提交回复
热议问题