Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
8ba3b355
You need to sign in or sign up before continuing.
Commit
8ba3b355
authored
Apr 04, 2017
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix eslint errors
parent
3b4402fb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
10 deletions
+7
-10
configure.js
configure.js
+2
-4
ws.js
controllers/ws.js
+2
-0
install.js
npm/install.js
+1
-2
server.js
server.js
+2
-4
No files found.
configure.js
View file @
8ba3b355
...
...
@@ -428,12 +428,10 @@ module.exports = (port, spinner) => {
switch
(
error
.
code
)
{
case
'EACCES'
:
spinner
.
fail
(
'Listening on port '
+
port
+
' requires elevated privileges!'
)
process
.
exit
(
1
)
break
return
process
.
exit
(
1
)
case
'EADDRINUSE'
:
spinner
.
fail
(
'Port '
+
port
+
' is already in use!'
)
process
.
exit
(
1
)
break
return
process
.
exit
(
1
)
default
:
throw
error
}
...
...
controllers/ws.js
View file @
8ba3b355
'use strict'
/* eslint-disable standard/no-callback-literal */
const
_
=
require
(
'lodash'
)
module
.
exports
=
(
socket
)
=>
{
...
...
npm/install.js
View file @
8ba3b355
...
...
@@ -132,8 +132,7 @@ pm2.connectAsync().then(() => {
})
default
:
console
.
info
(
colors
.
bold
.
cyan
(
'> Open config.yml in your favorite editor. Then start Wiki.js using: node wiki start'
))
process
.
exit
(
0
)
break
return
process
.
exit
(
0
)
}
}).
then
(()
=>
{
ora
.
succeed
(
colors
.
bold
.
green
(
'Wiki.js has been configured and is now running!'
))
...
...
server.js
View file @
8ba3b355
...
...
@@ -198,12 +198,10 @@ server.on('error', (error) => {
switch
(
error
.
code
)
{
case
'EACCES'
:
console
.
error
(
'Listening on port '
+
appconfig
.
port
+
' requires elevated privileges!'
)
process
.
exit
(
1
)
break
return
process
.
exit
(
1
)
case
'EADDRINUSE'
:
console
.
error
(
'Port '
+
appconfig
.
port
+
' is already in use!'
)
process
.
exit
(
1
)
break
return
process
.
exit
(
1
)
default
:
throw
error
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment