title: How to restart Foreman when code in a Django site changes?
body: <p>I'm running a Django website in a Vagrant box that (roughly) mirrors a Heroku set-up. It uses Foreman with a Procfile like this:</p>
  
  <pre><code>web: gunicorn projectname.wsgi &gt; /vagrant/gunicorn.log 2&gt;&amp;1
  </code></pre>
  
  <p>However, when I change my Django code, the server doesn't restart or reload the code, which makes development... painful!</p>
  
  <p>How can I make Foreman serve the new code when it changes?</p>