Created
November 6, 2012 16:51
-
-
Save gpittau/4025967 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var connect = require('connect'); | |
var less = require('less-middleware'); | |
var app | |
= connect() | |
.use(connect.logger('dev')) | |
.use(connect.directory(__dirname + '/public')) | |
.use(connect.static(__dirname+'/public')) | |
.use( | |
less( | |
{ | |
src:__dirname+'/public/A51/donejs/canui/style/bootstrap/less' | |
, compress: true | |
} | |
) | |
) | |
/* | |
.use( | |
function(req,res) | |
{ | |
console.log('holalallaa: '+__dirname) | |
} | |
) | |
.use(connect.basicAuth( | |
function(user,pass) | |
{ | |
return pass == 'e3#e3#' | |
} | |
) | |
) | |
*/ | |
app.listen(3000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
su
sed -i -e's/8000/3000/' /etc/nginx/include/nodejs-proxy