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
c931a2a0
Commit
c931a2a0
authored
Aug 29, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
send logs file as text/plain
parent
01d306f0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
History.md
History.md
+1
-0
debomatic-webui/lib/app.coffee
debomatic-webui/lib/app.coffee
+9
-0
No files found.
History.md
View file @
c931a2a0
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
*
[new] [module] add parser for blhc log file
*
[new] [module] add parser for blhc log file
*
[new] show file size for package files
*
[new] show file size for package files
*
[new] disable autoscroll pressing on "back on top" panel
*
[new] disable autoscroll pressing on "back on top" panel
*
[new] log files can be now showed directly in the browsers
*
[fix] [module] use readline while parsing piuparts log file
*
[fix] [module] use readline while parsing piuparts log file
*
[fix] add support to sourceupload.changes
*
[fix] add support to sourceupload.changes
*
[fix] add support to source format 1.0 - closes #6
*
[fix] add support to source format 1.0 - closes #6
...
...
debomatic-webui/lib/app.coffee
View file @
c931a2a0
...
@@ -5,6 +5,7 @@ app = module.exports = require("express")()
...
@@ -5,6 +5,7 @@ app = module.exports = require("express")()
server
=
require
(
"http"
).
createServer
(
app
)
server
=
require
(
"http"
).
createServer
(
app
)
io
=
require
(
"socket.io"
)(
server
)
io
=
require
(
"socket.io"
)(
server
)
path
=
require
(
"path"
)
serve_static
=
require
(
"serve-static"
)
serve_static
=
require
(
"serve-static"
)
serve_index
=
require
(
"serve-index"
)
serve_index
=
require
(
"serve-index"
)
errorhandler
=
require
(
"errorhandler"
)
errorhandler
=
require
(
"errorhandler"
)
...
@@ -64,6 +65,14 @@ if config.routes.debomatic
...
@@ -64,6 +65,14 @@ if config.routes.debomatic
next
()
next
()
return
return
app
.
get
config
.
routes
.
debomatic
+
'/:distribution/logs/:file'
,
(
req
,
res
)
->
distribution
=
req
.
params
.
distribution
file
=
req
.
params
.
file
full_path
=
path
.
join
(
config
.
debomatic
.
path
,
distribution
,
'logs'
,
file
)
res
.
set
(
'Content-Type'
,
'text/plain'
)
res
.
sendFile
(
full_path
)
app
.
use
(
config
.
routes
.
debomatic
,
serve_static
(
config
.
debomatic
.
path
))
app
.
use
(
config
.
routes
.
debomatic
,
serve_static
(
config
.
debomatic
.
path
))
app
.
use
(
config
.
routes
.
debomatic
,
serve_index
(
config
.
debomatic
.
path
,
app
.
use
(
config
.
routes
.
debomatic
,
serve_index
(
config
.
debomatic
.
path
,
{
view
:
"details"
,
icons
:
true
}))
{
view
:
"details"
,
icons
:
true
}))
...
...
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