Convert back to using createrServer as it was failing in Heroku