Purposefully exiting process for a dyno restart on heroku <p>I've got a phantomjs app (<a href="http://css.benjaminbenben.com" rel="nofollow">http://css.benjaminbenben.com</a>) running on heroku - it works well for some time but then I have to run <code>heroku restart</code> because it requests start timing out.</p> <p>I'm looking for a stop-gap solution (I've gone from around 6 to 4500 daily visitors over the last week), and I was considering exiting the process after it had served a set number of requests to fire a restart.</p> <p>Will this work? And would this be considered bad practice?</p> <p>(in case you're interested, the app source is here - <a href="https://github.com/benfoxall/wtcss" rel="nofollow">https://github.com/benfoxall/wtcss</a>)</p>