Getting Disqus working on localhost

I wanted to see how the Disqus comment block will look in my Ghost installation before pushing it to production, but I couldn't get the localhost setup working. All I got was "Unable to load Disqus" message :-(.

There are different tutorials on how to get Disqus working on localhost in Ghost, but none of them worked for me. I've tried the disqus_dev option but that failed for me.

What actually has worked for me was putting

var disqus_url = 'http://localhost/';

in the Disqus JS snippet. Don't forget to add localhost (this time without http://) to your 'Trusted Domains' in Disqus advanced settings.

Show Comments