Update npm-http-server dep
This commit is contained in:
parent
a8687d3e75
commit
396906dde1
|
@ -7,11 +7,12 @@
|
|||
"registryURL": "https://registry.npmjs.org",
|
||||
"bowerBundle": "/bower.zip",
|
||||
"redirectTTL": 500,
|
||||
"autoIndex": true,
|
||||
"port": 5000
|
||||
},
|
||||
"dependencies": {
|
||||
"cors": "^2.7.1",
|
||||
"express": "^4.13.4",
|
||||
"npm-http-server": "^2.4.1"
|
||||
"npm-http-server": "^2.5.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@ const cors = require('cors')
|
|||
const registryURL = process.env.npm_package_config_registryURL
|
||||
const bowerBundle = process.env.npm_package_config_bowerBundle
|
||||
const redirectTTL = process.env.npm_package_config_redirectTTL
|
||||
const autoIndex = process.env.npm_package_config_autoIndex
|
||||
const port = process.env.PORT || process.env.npm_package_config_port
|
||||
const app = express()
|
||||
|
||||
|
@ -14,7 +15,8 @@ app.use(express.static('public', { maxAge: 60000 }))
|
|||
app.use(createRequestHandler({
|
||||
registryURL: registryURL,
|
||||
bowerBundle: bowerBundle,
|
||||
redirectTTL: redirectTTL
|
||||
redirectTTL: redirectTTL,
|
||||
autoIndex: autoIndex
|
||||
}))
|
||||
|
||||
app.listen(port, function () {
|
||||
|
|
Loading…
Reference in New Issue