mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-07-23 12:40:55 +08:00
Progress...
This commit is contained in:
+8
-2
@@ -7,7 +7,9 @@ var express = require('express')
|
||||
, routes = require('./routes')
|
||||
, user = require('./routes/user')
|
||||
, http = require('http')
|
||||
, path = require('path');
|
||||
, path = require('path')
|
||||
, io = require('socket.io')
|
||||
, garageServer = require('../lib/server/garageserver.io');
|
||||
|
||||
var app = express();
|
||||
|
||||
@@ -30,6 +32,10 @@ app.configure('development', function(){
|
||||
app.get('/', routes.index);
|
||||
app.get('/users', user.list);
|
||||
|
||||
http.createServer(app).listen(app.get('port'), function(){
|
||||
var server = http.createServer(app);
|
||||
|
||||
server.listen(app.get('port'), function(){
|
||||
console.log("Express server listening on port " + app.get('port'));
|
||||
});
|
||||
|
||||
garageServer.createGarageServer(io.listen(server), {});
|
||||
|
||||
@@ -3,5 +3,7 @@ html
|
||||
head
|
||||
title= title
|
||||
link(rel='stylesheet', href='/stylesheets/style.css')
|
||||
script(src='/socket.io/socket.io.js')
|
||||
script(src='/client/garageserver.io.js')
|
||||
body
|
||||
block content
|
||||
Reference in New Issue
Block a user