mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
rewrite server.js, fix travis
This commit is contained in:
parent
c896a182e1
commit
c408d8961b
@ -1 +0,0 @@
|
||||
1520
|
@ -4,15 +4,11 @@
|
||||
*/
|
||||
|
||||
var connect = require('connect')
|
||||
, args = process.argv.slice(2)
|
||||
, fs = require('fs')
|
||||
, folder = '/../../'
|
||||
, port = '3000'
|
||||
, http = require('http')
|
||||
, fs = require('fs')
|
||||
, app = connect()
|
||||
.use(connect.static(__dirname + '/../../'));
|
||||
|
||||
var server = connect.createServer(
|
||||
connect.static(__dirname + folder)
|
||||
).listen(port)
|
||||
http.createServer(app).listen(3000);
|
||||
|
||||
fs.writeFileSync(__dirname + '/pid.txt', process.pid, 'utf-8')
|
||||
|
||||
console.log("Server started on port %s in %s", port, folder)
|
||||
fs.writeFileSync(__dirname + '/pid.txt', process.pid, 'utf-8')
|
@ -17,9 +17,9 @@
|
||||
}
|
||||
]
|
||||
, "devDependencies": {
|
||||
"uglify-js": "*"
|
||||
, "jshint": "*"
|
||||
, "recess": "*"
|
||||
, "connect": "*"
|
||||
"uglify-js": "1.2.6"
|
||||
, "jshint": "0.6.1"
|
||||
, "recess": "1.0.3"
|
||||
, "connect": "2.1.3"
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user