set proper socket for heroku
This commit is contained in:
parent
96197130e1
commit
aa5e3d522b
1 changed files with 2 additions and 2 deletions
|
@ -116,13 +116,13 @@ if (json.length > 0) {
|
||||||
|
|
||||||
<% if authenticated? && (@map.permission == "commons" || @map.user == user) %>
|
<% if authenticated? && (@map.permission == "commons" || @map.user == user) %>
|
||||||
// this is for the heroku staging environment
|
// this is for the heroku staging environment
|
||||||
//window.realtime.socket = io.connect('http://gentle-savannah-1303.herokuapp.com');
|
window.realtime.socket = io.connect('http://gentle-savannah-1303.herokuapp.com');
|
||||||
|
|
||||||
// this is for metamaps.cc
|
// this is for metamaps.cc
|
||||||
//window.realtime.socket = io.connect('http://metamaps.cc:5001');
|
//window.realtime.socket = io.connect('http://metamaps.cc:5001');
|
||||||
|
|
||||||
// this is for localhost development
|
// this is for localhost development
|
||||||
window.realtime.socket = io.connect('http://localhost:5001');
|
//window.realtime.socket = io.connect('http://localhost:5001');
|
||||||
|
|
||||||
window.realtime.socket.on('connect', function () {
|
window.realtime.socket.on('connect', function () {
|
||||||
console.log('socket connected');
|
console.log('socket connected');
|
||||||
|
|
Loading…
Reference in a new issue