Permalink
Browse files

server config

  • Loading branch information...
1 parent 3dfd5da commit b3a7cefa19035c460d254b719fa9d4179146f7aa @fadomire committed Mar 23, 2013
Showing with 3 additions and 3 deletions.
  1. +2 −2 app.js
  2. +1 −1 public/js/client.js
View
4 app.js
@@ -2,7 +2,7 @@ var express = require("express"),
BinaryServer = require('binaryjs').BinaryServer,
fs = require('fs');
-var port = process.env.PORT || 8080;
+var port = process.env.PORT || process.env.VMC_APP_PORT || 8080;
var app = express(),
server = require('http').createServer(app),
@@ -49,4 +49,4 @@ app.configure(function(){
app.get('/', function(req, res){
res.render('index', {})
});
-console.log('Listening on port 8080');
+console.log('Listening on port '+port);
View
@@ -1,6 +1,6 @@
//(function() {
window.MediaSource = window.MediaSource || window.WebKitMediaSource;
- var client = new BinaryClient('ws://'+window.location.hostname+':8080');
+ var client = new BinaryClient('ws://'+window.location.hostname);
var URL = window.URL || window.webkitURL || window.mozURL || window.msURL;
if( ! URL ){
URL={};

0 comments on commit b3a7cef

Please sign in to comment.