Rewrote the server var in hopes of fixing heroku deploy