From c9193642c92e12afc9613b9c2bb1258d0efe7a16 Mon Sep 17 00:00:00 2001 From: Marcin Jekot Date: Tue, 24 Dec 2013 15:31:28 +0200 Subject: [PATCH] correct the livereload host This let's you use an arbitrary host in development mode, and do cross machine/VM testing etc, with a hostname other than localhost --- app/views/includes/foot.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/includes/foot.jade b/app/views/includes/foot.jade index 881aa274..65b559a3 100755 --- a/app/views/includes/foot.jade +++ b/app/views/includes/foot.jade @@ -27,4 +27,4 @@ script(type='text/javascript', src='/js/init.js') if (process.env.NODE_ENV == 'development') //Livereload script rendered - script(type='text/javascript', src='http://localhost:35729/livereload.js') + script(type='text/javascript', src='http://'+req.host+':35729/livereload.js')