From 14a292331b723031e0290baaaa8179fdf69d7464 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Tue, 19 Jan 2016 14:27:25 +0800 Subject: [PATCH] two tweaks to help production deploy --- app/assets/javascripts/src/Metamaps.js.erb | 3 +-- app/views/layouts/application.html.erb | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/src/Metamaps.js.erb b/app/assets/javascripts/src/Metamaps.js.erb index c8e61868..09bd1f97 100644 --- a/app/assets/javascripts/src/Metamaps.js.erb +++ b/app/assets/javascripts/src/Metamaps.js.erb @@ -1933,8 +1933,7 @@ Metamaps.Realtime = { }); $('body').click(self.close); - var realtimeServerUrl = '<%= ENV['REALTIME_SERVER'] %>' - self.socket = io.connect(realtimeServerUrl); + self.socket = io.connect('<%= ENV['REALTIME_SERVER'] %>'); self.socket.on('connect', function () { self.startActiveMap(); }); diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 03a9ebf7..e21a91c3 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -21,7 +21,7 @@