added npm start script (includes build)

This commit is contained in:
joates 2014-09-18 16:19:00 +01:00
parent 453bbfa09b
commit 5158475529
2 changed files with 5 additions and 3 deletions

View file

@ -1,9 +1,10 @@
{
"name": "squatconf-web",
"version": "0.1.0",
"version": "0.2.0",
"description": "website for the squatConf conference",
"main": "build.js",
"main": "server.js",
"scripts": {
"start": "echo -n 'building.. '; node build.js && node server.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {

View file

@ -32,4 +32,5 @@ process.on('uncaughtException', function (err) {
})
server.listen(port)
console.log('server started on port '+ port)
console.log('['+ process.pid +'] server started on port '+ port)
console.log('(use ctrl+c to stop server)')