Browse Source

added `npm start` script (includes build)

2015
joates 7 years ago
parent
commit
5158475529
  1. 5
      package.json
  2. 3
      server.js

5
package.json

@ -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": {

3
server.js

@ -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)')
Loading…
Cancel
Save