продакшн на нормальном порте

This commit is contained in:
Alexey Kasyanchuk 2017-01-13 01:09:07 +03:00
parent 5d58695c65
commit 91f066ae61

View File

@ -4,7 +4,7 @@ import './router';
import PagesPie from './pages-pie.js';
var io = require("socket.io-client");
window.torrentSocket = io('http://' + document.location.hostname + ':8095/');
window.torrentSocket = io('http://' + document.location.hostname + (process.env.NODE_ENV === 'production' ? '/' : ':8095/'));
import injectTapEventPlugin from 'react-tap-event-plugin';