Browse files

Change default backend port from 8000 to 4563

  • Loading branch information...
1 parent f77ff6d commit 5044ba9766e44654ee29e51228cb064dd31ccef6 @alexanderteinum alexanderteinum committed Apr 8, 2013
Showing with 8 additions and 8 deletions.
  1. +1 −1 backend/main.coffee
  2. +5 −5 deploy.sh
  3. +2 −2 frontend/main.coffee
View
2 backend/main.coffee
@@ -1,4 +1,4 @@
-io = require('socket.io').listen(8000)
+io = require('socket.io').listen(4563)
request = require 'request'
_ = require 'underscore'
languages = require 'languages'
View
10 deploy.sh
@@ -9,10 +9,10 @@ if [ -z $2 ]; then
echo
echo "Specify the address of the Socket.IO connection that connects the"
echo "frontend with the backend. The host is the domain name or IP of the"
- echo "server where both the UTT frontend and backend is hosted. The port"
- echo "should be set to any port that is available."
+ echo "server where both the UTT frontend and backend is hosted. 4563 is the
+ echo "default UTT backend port number."
echo
- echo "Example: $0 http://utt.tingtun.no 8000"
+ echo "Example: $0 http://utt.tingtun.no 4563"
exit 1
fi
@@ -23,8 +23,8 @@ fi
git reset --hard
git pull
-sed -i "s|8000|$2|" backend/main.coffee
-sed -i "s|http://localhost:8000|$1:$2|" frontend/coffee/main.coffee
+sed -i "s|4563|$2|" backend/main.coffee
+sed -i "s|http://localhost:4563|$1:$2|" frontend/coffee/main.coffee
coffee --output frontend/js frontend/coffee
View
4 frontend/main.coffee
@@ -4,7 +4,7 @@ requirejs.config {
jquery: 'http://code.jquery.com/jquery-1.9.1.min'
backbone: 'deps/backbone'
underscore: 'http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min'
- socketio: 'http://localhost:8000/socket.io/socket.io'
+ socketio: 'http://localhost:4563/socket.io/socket.io'
}
shim: {
'backbone': {
@@ -22,7 +22,7 @@ requirejs.config {
require ['backbone', 'socketio', 'router', 'models/test-run', 'views/views'], (Backbone, io, Router, TestRun, Views) ->
router = new Router()
- socket = io.connect 'http://localhost:8000'
+ socket = io.connect 'http://localhost:4563'
testRun = new TestRun(socket)
views = new Views({ model: testRun, router: router })
do Backbone.history.start

0 comments on commit 5044ba9

Please sign in to comment.