var express = require('express');
var app = express();

app.set('port', (process.env.PORT || 8080));

//Public files
app.use(express.static('public'));
//node_modules
app.use(express.static('node_modules'));
//node_modules
app.use(express.static('bower_components'));

app.get('/', function (req, res) {
	if(req.headers.host.match('javicaballero-web.herokuapp.com')){
		res.redirect(301, 'http://javicaballero.com' + req.path);
	}
  res.sendFile('index.html');
});

app.listen(app.get('port'));

console.log('Servidor iniciado');

var express = require('express');
var app = express();

app.set('port', (process.env.PORT || 8080));

//Public files
app.use(express.static('public'));
//node_modules
app.use(express.static('node_modules'));
//node_modules
app.use(express.static('bower_components'));

app.get('/', function (req, res) {
  res.sendFile('index.html');
});

app.listen(app.get('port'));

console.log('Servidor iniciado');

Revert "Added redirect to javicaballero.com"
Revert "Added redirect to javicaballero.com"

This reverts commit 1b613fcc1ef745bea91dfd0431633f5261329b03.
