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
0853cfad
Commit
0853cfad
authored
Mar 19, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update to express 3.x
parent
8fe66560
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
debomatic-webui/index.js
debomatic-webui/index.js
+10
-5
debomatic-webui/package.json
debomatic-webui/package.json
+2
-1
No files found.
debomatic-webui/index.js
View file @
0853cfad
...
...
@@ -7,23 +7,25 @@ var express = require('express')
,
routes
=
require
(
'
./routes
'
)
,
config
=
require
(
'
./lib/config.js
'
)
,
utils
=
require
(
'
./lib/utils.js
'
)
,
http
=
require
(
'
http
'
)
,
partials
=
require
(
'
express-partials
'
)
,
app
=
module
.
exports
=
express
()
,
Client
=
require
(
'
./lib/client.js
'
)
,
Broadcaster
=
require
(
'
./lib/broadcaster.js
'
)
var
app
=
module
.
exports
=
express
.
createServer
();
var
io
=
require
(
'
socket.io
'
).
listen
(
app
,
config
.
socket
);
// Configuration
app
.
configure
(
function
(){
app
.
set
(
'
views
'
,
__dirname
+
'
/views
'
);
app
.
set
(
'
view engine
'
,
'
ejs
'
);
app
.
use
(
partials
());
app
.
use
(
express
.
bodyParser
());
app
.
use
(
express
.
methodOverride
());
app
.
use
(
app
.
router
);
app
.
use
(
express
.
static
(
__dirname
+
'
/public
'
));
app
.
use
(
config
.
routes
.
debomatic
,
express
.
directory
(
config
.
debomatic
.
path
));
app
.
use
(
config
.
routes
.
debomatic
,
express
.
static
(
config
.
debomatic
.
path
));
//app.enable('trust proxy');
});
app
.
configure
(
'
development
'
,
function
(){
...
...
@@ -40,8 +42,11 @@ app.get(config.routes.distribution, routes.distribution)
if
(
config
.
routes
.
preferences
)
app
.
get
(
config
.
routes
.
preferences
,
routes
.
preferences
)
var
server
=
http
.
createServer
(
app
)
,
io
=
require
(
'
socket.io
'
).
listen
(
server
,
config
.
socket
)
// Listening
var
server
=
app
.
listen
(
config
.
port
,
config
.
host
,
null
,
function
(
err
){
server
.
listen
(
config
.
port
,
config
.
host
,
null
,
function
(
err
){
// Checking nodejs with sudo:
// Find out which user used sudo through the environment variable
...
...
@@ -66,7 +71,7 @@ var server = app.listen(config.port, config.host, null, function(err){
client
.
send_status
(
status
)
});
console
.
log
(
"
Debomatic-webui listening on %s:%d in %s mode
"
,
app
.
address
().
address
,
app
.
address
().
port
,
app
.
settings
.
env
);
console
.
log
(
"
Debomatic-webui listening on %s:%d in %s mode
"
,
server
.
address
().
address
,
server
.
address
().
port
,
app
.
settings
.
env
);
});
server
.
on
(
'
error
'
,
function
(
e
)
{
...
...
debomatic-webui/package.json
View file @
0853cfad
...
...
@@ -3,8 +3,9 @@
,
"version"
:
"0.0.1"
,
"private"
:
true
,
"dependencies"
:
{
"express"
:
"
2.5
.8"
"express"
:
"
3.4
.8"
,
"ejs"
:
">= 0.0.1"
,
"express-partials"
:
"*"
,
"socket.io"
:
"*"
,
"node-fs"
:
"*"
,
"tailfd"
:
"*"
...
...
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