1 | var express = require("express");
|
2 | var app = express();
|
3 | var path = require('path');
|
4 |
|
5 |
|
6 |
|
7 | app.set('port', (process.env.PORT || 8080));
|
8 | app.use(express.static(__dirname + '/gh-pages/'));
|
9 | //app.use(express.static(path.join(__dirname,'gh-pages')));
|
10 |
|
11 |
|
12 | app.get('/', function(request, response){
|
13 | response.sendFile('index.html');
|
14 | });
|
15 |
|
16 | app.listen(app.get('port'), function() {
|
17 | console.log('Servidor en funcionamiento en el puerto 8080');
|
18 | }); |
\ | No newline at end of file |