Skip to content

Commit

Permalink
Removed Node Knockout-specific deploy scripts. Worked around small bu…
Browse files Browse the repository at this point in the history
…g related to parsing of command line arguments.
  • Loading branch information
piim authored and piim committed Sep 8, 2011
1 parent 1aec7a5 commit 096271e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 358 deletions.
346 changes: 0 additions & 346 deletions deploy

This file was deleted.

8 changes: 0 additions & 8 deletions deploy.conf

This file was deleted.

8 changes: 5 additions & 3 deletions main.js
@@ -1,6 +1,5 @@
#!/usr/bin/env node

var nko = require('nko')('EhXaOhxAiOnjSvKc');
var program = require('commander');
var server = require('./server');
var project = require('./project');
Expand Down Expand Up @@ -41,8 +40,11 @@ program
})})

if (process.argv.length > 2) {
if (process.argv[2].charAt(0) == '-') {
process.argv.splice(2, 0, 'listen')
}
program.parse(process.argv);
} else {
project.start()
server.listen(program.port || process.env.PORT || 8123)
process.argv.push('listen');
program.parse(process.argv);
}
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -11,7 +11,6 @@
"node": "~0.4.9"
},
"dependencies": {
"nko": "~0.1.0",
"express": "~2.4.6",
"commander": "~0.1.0",
"findit": "~0.1.1",
Expand Down

0 comments on commit 096271e

Please sign in to comment.