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
18109727
Commit
18109727
authored
Jul 17, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
if json log file does not exist, watch for is creation - closes #4
parent
9b89af82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
debomatic-webui/lib/broadcaster.coffee
debomatic-webui/lib/broadcaster.coffee
+8
-1
No files found.
debomatic-webui/lib/broadcaster.coffee
View file @
18109727
...
...
@@ -73,7 +73,14 @@ __watch_pidfile = (socket) ->
return
Broadcaster
=
(
sockets
,
status
)
->
__watch_status
(
sockets
,
status
)
if
not
fs
.
existsSync
(
config
.
debomatic
.
jsonfile
)
# watch until json log file is created
fs
.
watchFile
config
.
debomatic
.
jsonfile
,
(
curr
,
prev
)
->
if
curr
.
ino
isnt
0
fs
.
unwatchFile
(
config
.
debomatic
.
jsonfile
)
__watch_status
(
sockets
,
status
)
else
__watch_status
(
sockets
,
status
)
__watch_distributions
(
sockets
)
__watch_pidfile
(
sockets
)
...
...
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