Extract server to run on heroku