We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0be8a22 commit 49728baCopy full SHA for 49728ba
app/server/index.js
@@ -5,7 +5,8 @@ var path = require('path')
5
var spawn = require('child_process').spawn
6
var fs = require('fs')
7
var ws = require('websocket').server
8
-var port = process.env.LINUX_DASH_SERVER_PORT || 80
+var args = require('yargs').argv
9
+var port = args.port || process.env.LINUX_DASH_SERVER_PORT || 80
10
11
server.listen(port, function() {
12
console.log('Linux Dash Server Started on port ' + port + '!');
package.json
@@ -23,7 +23,8 @@
23
"homepage": "https://github.com/afaqurk/linux-dash",
24
"dependencies": {
25
"express": "^4.11.1",
26
- "websocket": "^1.0.23"
+ "websocket": "^1.0.23",
27
+ "yargs": "^8.0.1"
28
},
29
"devDependencies": {
30
"angular": "1.3.4",
0 commit comments