änderung von port 80 auf 8080
This commit is contained in:
parent
d4fe5c05f3
commit
80a10450bc
1 changed files with 3 additions and 3 deletions
6
index.js
6
index.js
|
@ -11,7 +11,7 @@ var url = 'http://192.168.178.109:1024/'
|
||||||
|
|
||||||
// Host the HTML File
|
// Host the HTML File
|
||||||
app.get('/', function(req, res){
|
app.get('/', function(req, res){
|
||||||
//name, class, experience, gold, level
|
//name, class, experience, gold, level
|
||||||
request({
|
request({
|
||||||
url: url,
|
url: url,
|
||||||
json: true,
|
json: true,
|
||||||
|
@ -31,7 +31,7 @@ app.get('/', function(req, res){
|
||||||
console.log(el.class)
|
console.log(el.class)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
// res.sendFile(__dirname + '/views/index.html');
|
// res.sendFile(__dirname + '/views/index.html');
|
||||||
res.render('index')
|
res.render('index')
|
||||||
} else console.error('HTTP ERROR ' + response.statusCode + '')
|
} else console.error('HTTP ERROR ' + response.statusCode + '')
|
||||||
|
@ -42,4 +42,4 @@ app.get('/assets/*', function(req, res){
|
||||||
res.sendFile(__dirname + req.originalUrl)
|
res.sendFile(__dirname + req.originalUrl)
|
||||||
})
|
})
|
||||||
|
|
||||||
app.listen(80)
|
app.listen(8080)
|
||||||
|
|
Reference in a new issue