title: Rails + foreman + worker hangs server
body: <p>On my local machine I'm trying to start my rails app and delayed job worker using Foreman. My Procfile looks like this:</p>
  
  <pre><code>web: bundle exec rails server -p $PORT
  worker: bundle exec rake jobs:work
  </code></pre>
  
  <p>When I start foreman only the first two web requests get executed. With the third request the server hangs. The first request is outputted in the console, the second isn't. </p>
  
  <p>If I leave out the worker in my Procfile the server is running just fine and is outputting everything to the console. Also when I start the rails server and worker without Foreman everything is working fine.</p>
  
  <p>So it looks like there's an issue with Foreman. I'm guessing it's a problem with Foreman not outputting anything to the console after the first request and therefore the buffer doesn't get flushed. I've searched other posts and as a result added STDOUT.sync = true to my development.rb but without any success. </p>
  
  <p>Does anybody have a clue? Thanks!</p>