Fix divide by 0 error
Add env vars for foreman and heroku