static was used as variable name, not ok. Release 1.1.17
This commit is contained in:
parent
721e80aa1f
commit
9583845466
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"name" : "cryptalk",
|
||||
"version" : "1.1.16",
|
||||
"description" : "Encrypted HTML5/Node.JS instant chat",
|
||||
"version" : "1.1.17777777description" : "Encrypted HTML5/Node.JS instant chat",
|
||||
"main" : "server.js",
|
||||
"subdomain": "cryptalk",
|
||||
"analyze": true,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
const
|
||||
static = require('node-static'),
|
||||
files = require('node-static'),
|
||||
port = process.env.PORT || 8080,
|
||||
path = require('path');
|
||||
|
||||
|
@ -10,10 +10,10 @@ var
|
|||
server,
|
||||
io;
|
||||
|
||||
// Set up static file location
|
||||
file = new static.Server(path.resolve(__dirname, 'public'));
|
||||
// Set up files.file location
|
||||
file = new files.Server(path.resolve(__dirname, 'public'));
|
||||
|
||||
// Create http server, handle static assets
|
||||
// Create http server, handle files.assets
|
||||
server = require('http').createServer(function (req, res) {
|
||||
req.addListener('end', function () { file.serve(req, res); }).resume();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue