1
0
mirror of https://github.com/balkian/go5ears.git synced 2024-12-22 17:38:11 +00:00

Changed process.env.PWD to __dirname

This commit is contained in:
J.Fernando Sánchez 2012-10-07 14:26:16 +02:00
parent 6c7bae83cc
commit 7c494a42f0

View File

@ -1,9 +1,6 @@
/**
* Module dependencies.
*/
process.env.PWD = process.cwd()
var express = require('express')
, $ = require('jquery')
, http = require('http')
@ -15,10 +12,10 @@ var port = process.env.PORT || 8888;
var parser = new xml2js.Parser();
app.use("/css", express.static(process.env.PWD + '/css'));
app.use("/", express.static(process.env.PWD + '/public'));
app.use("/js", express.static(process.env.PWD + '/js'));
app.use("/skin", express.static(process.env.PWD + '/skin'));
app.use("/css", express.static(__dirname + '/css'));
app.use("/", express.static(__dirname + '/public'));
app.use("/js", express.static(__dirname + '/js'));
app.use("/skin", express.static(__dirname + '/skin'));
app.get('/', function(req,res){
res.sendfile("public/index.html");