Skip to content
Browse files

Make paths relative

  • Loading branch information...
1 parent 6fd8dd7 commit e7818d74ff37968fbc8254aac9c41cfb63e0de28 @timjb committed
Showing with 6 additions and 15 deletions.
  1. +3 −8 lib/server.js
  2. +3 −7 src/server.coffee
View
11 lib/server.js
@@ -4,18 +4,13 @@
express = require('express');
socketIO = require('socket.io');
_ = require('underscore');
- Card = require('../src/models/card').Card;
- Player = require('../src/models/player').Player;
- ServerGame = require('../src/models/server_game').ServerGame;
+ Card = require('./models/card').Card;
+ Player = require('./models/player').Player;
+ ServerGame = require('./models/server_game').ServerGame;
mainDir = path.join(__dirname, '..');
app = express.createServer();
app.configure(function() {
app.use(express.static("" + mainDir + "/public"));
- app.use(express.compiler({
- src: "" + mainDir + "/lib",
- dest: "" + mainDir + "/src",
- enable: ['coffeescript']
- }));
app.use(express.static("" + mainDir + "/lib"));
return app.use(express.static(mainDir));
});
View
10 src/server.coffee
@@ -10,9 +10,9 @@ socketIO = require 'socket.io'
_ = require 'underscore'
# Project
-{Card} = require '../src/models/card'
-{Player} = require '../src/models/player'
-{ServerGame} = require '../src/models/server_game'
+{Card} = require './models/card'
+{Player} = require './models/player'
+{ServerGame} = require './models/server_game'
# Express
@@ -24,10 +24,6 @@ app = express.createServer()
app.configure ->
app.use express.static "#{mainDir}/public"
- app.use express.compiler
- src: "#{mainDir}/lib"
- dest: "#{mainDir}/src"
- enable: ['coffeescript']
app.use express.static "#{mainDir}/lib"
app.use express.static mainDir

0 comments on commit e7818d7

Please sign in to comment.
Something went wrong with that request. Please try again.