File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ See instructions for preferred server linux-dash server _(all included)_:
75
75
npm install --production
76
76
77
77
# # start linux-dash (on port 80 by default; may require sudo)
78
+ # # You may change this with the `LINUX_DASH_SERVER_PORT` environment variable (eg. `LINUX_DASH_SERVER_PORT=8080 node server`)
78
79
node index.js
79
80
80
81
```
Original file line number Diff line number Diff line change @@ -5,9 +5,11 @@ var path = require('path')
5
5
var spawn = require ( 'child_process' ) . spawn
6
6
var fs = require ( 'fs' )
7
7
var ws = require ( 'websocket' ) . server
8
+ var port = process . env . LINUX_DASH_SERVER_PORT || 80
8
9
9
- server . listen ( process . env . PORT || 80 )
10
- console . log ( 'Linux Dash Server Started!' )
10
+ server . listen ( port , function ( ) {
11
+ console . log ( 'Linux Dash Server Started on port ' + port + '!' ) ;
12
+ } )
11
13
12
14
app . use ( express . static ( path . resolve ( __dirname + '/../' ) ) )
13
15
You can’t perform that action at this time.
0 commit comments