refs #56 bug fix for production mode without heroku
refs #56 for development mode