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
290fce24
Commit
290fce24
authored
Jul 23, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
recreate a bin main script to call app.coffee and fix paths in app lib
parent
19160129
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
debomatic-webui/debomatic-webui
debomatic-webui/debomatic-webui
+1
-0
debomatic-webui/lib/app.coffee
debomatic-webui/lib/app.coffee
+7
-9
No files found.
debomatic-webui/debomatic-webui
0 → 100755
View file @
290fce24
require('./lib/app')
debomatic-webui/lib/app.coffee
100755 → 100644
View file @
290fce24
#/usr/bin/env coffee
###
###
Module dependencies.
Module dependencies.
###
###
...
@@ -11,12 +9,12 @@ serve_static = require("serve-static")
...
@@ -11,12 +9,12 @@ serve_static = require("serve-static")
serve_index
=
require
(
"serve-index"
)
serve_index
=
require
(
"serve-index"
)
errorhandler
=
require
(
"errorhandler"
)
errorhandler
=
require
(
"errorhandler"
)
routes
=
require
(
"./routes"
)
routes
=
require
(
".
.
/routes"
)
config
=
require
(
"./
lib/
config"
)
config
=
require
(
"./config"
)
utils
=
require
(
"./
lib/
utils"
)
utils
=
require
(
"./utils"
)
Client
=
require
(
"./
lib/
client"
)
Client
=
require
(
"./client"
)
Debomatic
=
require
(
"./
lib/
debomatic"
)
Debomatic
=
require
(
"./debomatic"
)
# error handler setup
# error handler setup
...
@@ -27,7 +25,7 @@ else
...
@@ -27,7 +25,7 @@ else
app
.
use
(
errorhandler
())
app
.
use
(
errorhandler
())
# the views
# the views
app
.
set
(
"views"
,
__dirname
+
"/views"
)
app
.
set
(
"views"
,
__dirname
+
"/
../
views"
)
app
.
set
(
"view engine"
,
"ejs"
)
app
.
set
(
"view engine"
,
"ejs"
)
# index page
# index page
...
@@ -71,7 +69,7 @@ if config.routes.debomatic
...
@@ -71,7 +69,7 @@ if config.routes.debomatic
{
view
:
"details"
,
icons
:
true
}))
{
view
:
"details"
,
icons
:
true
}))
# serve stylesheet-javascript
# serve stylesheet-javascript
app
.
use
(
serve_static
(
__dirname
+
"/public"
))
app
.
use
(
serve_static
(
__dirname
+
"/
../
public"
))
# serve dsc files as octet-stream
# serve dsc files as octet-stream
serve_static
.
mime
.
define
(
"application/octet-stream"
:
[
"dsc"
])
serve_static
.
mime
.
define
(
"application/octet-stream"
:
[
"dsc"
])
...
...
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