Added the server hostname as a config option. It's heroku for production, localhost for test, and your ip address for development.