File tree Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ See instructions for preferred server linux-dash server _(all included)_:
74
74
npm install --production
75
75
76
76
# # start linux-dash (on port 80 by default; may require sudo)
77
+ # # You may change this with the `LINUX_DASH_SERVER_PORT` environment variable (eg. `LINUX_DASH_SERVER_PORT=8080 node server`)
77
78
node index.js
78
79
79
80
```
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 ( 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
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env node
2
+
3
+ require ( '../app/server/index.js' )
Original file line number Diff line number Diff line change 3
3
"version" : " 2.0.0" ,
4
4
"description" : " A simple, low overhead web dashboard for linux." ,
5
5
"main" : " app/server/index.js" ,
6
+ "bin" : " bin/linux-dash" ,
6
7
"repository" : {
7
8
"type" : " git" ,
8
9
"url" : " https://github.com/afaqurk/linux-dash.git"
You can’t perform that action at this time.
0 commit comments