Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
cf413f52
Commit
cf413f52
authored
Jul 20, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
give sense to exist statuses
parent
6793a2f1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
debomatic-webui/debomatic-webui.coffee
debomatic-webui/debomatic-webui.coffee
+1
-1
debomatic-webui/lib/config.coffee
debomatic-webui/lib/config.coffee
+2
-2
debomatic-webui/lib/parser.coffee
debomatic-webui/lib/parser.coffee
+1
-1
No files found.
debomatic-webui/debomatic-webui.coffee
View file @
cf413f52
...
@@ -93,7 +93,7 @@ server.listen config.port, config.host, null, (err) ->
...
@@ -93,7 +93,7 @@ server.listen config.port, config.host, null, (err) ->
server
.
on
"error"
,
(
e
)
->
server
.
on
"error"
,
(
e
)
->
if
e
.
code
is
"EADDRINUSE"
if
e
.
code
is
"EADDRINUSE"
console
.
log
"Address in use %s:%d. Exit."
,
config
.
host
,
config
.
port
console
.
log
"Address in use %s:%d. Exit."
,
config
.
host
,
config
.
port
process
.
exit
1
process
.
exit
3
else
else
console
.
error
e
console
.
error
e
return
return
debomatic-webui/lib/config.coffee
View file @
cf413f52
...
@@ -135,7 +135,7 @@ try
...
@@ -135,7 +135,7 @@ try
user_config
=
parser
.
getUserConfig
()
user_config
=
parser
.
getUserConfig
()
if
user_config
if
user_config
console
.
log
"Reading user configutation ..."
console
.
log
"Reading user configutation ..."
config
=
extend
(
true
,
{},
config
,
require
(
user_config
))
config
=
extend
(
true
,
config
,
require
(
user_config
))
else
else
console
.
log
"No user config specified. Using global settings."
console
.
log
"No user config specified. Using global settings."
...
@@ -158,4 +158,4 @@ catch err
...
@@ -158,4 +158,4 @@ catch err
console
.
log
"File %s not found."
,
user_config
console
.
log
"File %s not found."
,
user_config
else
else
console
.
error
"Error reading user configutation"
,
err
console
.
error
"Error reading user configutation"
,
err
process
.
exit
1
process
.
exit
2
debomatic-webui/lib/parser.coffee
View file @
cf413f52
...
@@ -9,7 +9,7 @@ Parser = ->
...
@@ -9,7 +9,7 @@ Parser = ->
-h print this help
-h print this help
-c set user configuration file
-c set user configuration file
"""
,
process
.
argv
[
1
].
split
(
"/"
).
pop
()
"""
,
process
.
argv
[
1
].
split
(
"/"
).
pop
()
process
.
exit
0
process
.
exit
1
return
return
@
getUserConfig
=
->
@
getUserConfig
=
->
...
...
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