A solution is to run the following command in Heroku console : 

`SiteSetting.send("force_hostname=", "YOUR_HOST_NAME")`