crawler-ninja
Version:
A web crawler made for the SEO based on plugins. Please wait or contribute ... still in beta
23 lines (15 loc) • 562 B
JavaScript
/**
* Script used to start the local web site used for the unit tests.
* This is mainly a static web site containing pages with the different use cases to tests
*/
var express = require('express');
var serveStatic = require('serve-static');
var TEST_SITE_FOLDER = "./test/website-2/www";
var site = express();
site.use(serveStatic(TEST_SITE_FOLDER));
site.get('/redirect', function(req, res) {
res.redirect(301, '/');
});
site.listen(9991);
//console.log("Website used for the tests is starting from : " + TEST_SITE_FOLDER);
exports.site = site;