Commit 3e6366da authored by Bob Haugen's avatar Bob Haugen

Merge pull request #8 from valueflows/feature/static-site

dokku static site
parents 805ff55d 928fa6a0
/node_modules
npm-debug.log*
{
"name": "valueflo.ws",
"private": true,
"description": "valueflo.ws website",
"main": "server.js",
"scripts": {
"test": "true",
"start": "node server.js",
"deploy-remote": "git remote add dokku dokku@valueflo.ws:valueflo.ws",
"deploy-push": "git push dokku master",
"deploy": "npm run deploy-remote; npm run deploy-push"
},
"repository": {
"type": "git",
"url": "git+https://github.com/valueflows/valueflo.ws.git"
},
"author": "Value Flows",
"license": "",
"bugs": {
"url": "https://github.com/valueflows/valueflo.ws/issues"
},
"homepage": "https://github.com/valueflows/valueflo.ws#readme",
"dependencies": {
"finalhandler": "^0.4.0",
"serve-static": "^1.10.0"
}
}
var finalhandler = require('finalhandler')
var http = require('http')
var serveStatic = require('serve-static')
var serve = serveStatic(__dirname)
var server = http.createServer(function(req, res){
var done = finalhandler(req, res)
serve(req, res, done)
})
server.listen(process.env.PORT || 3000)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment