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) |
npm install git+ssh://git@github.com:SIGMA-IT/js-hal.git
su
sed -i -e's/8000/3000/' /etc/nginx/include/nodejs-proxy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
requiere:
npm install connect
npm install less-middleware
mkdir public
pushd public
git clone git@github.com:SIGMA-IT/A51.git
pushd A51
git submodule update --init --recursive
popd
popd
npm install node-supervisor
supervisor connect.js &