Permalink
Browse files

-e bugs

  • Loading branch information...
1 parent d3f3863 commit f5fd12194d1c97834057ee498028cf5e9741d3e9 @jindw jindw committed May 3, 2014
Showing with 1 addition and 5 deletions.
  1. +1 −5 server.js
View
@@ -2,14 +2,10 @@ var LiteEngine = require('lite').LiteEngine;
var path = require('path');
var fs = require('fs');
var http = require('http');
-var engine;
function start(root){
- if(engine != null){//node 一个重复执行的奇怪问题
- return ;
- }
//console.log('@@@'+new Error().stack)
root = path.resolve(root || './');
- engine = new LiteEngine(root);
+ var engine = new LiteEngine(root);
var port = process.env.APP_PORT || 18080;
require('lite/test/file-server').createServer(function (req, response,root) {
var url = req.url;

0 comments on commit f5fd121

Please sign in to comment.