app.js is not running
yordanjose opened this issue · comments
As i18n does not work, I have commented on it in the app.js file, but when executing the program with the node app.js. Nothing happens, just app.js seems not to be running on the server.
var express = require('express');
//var i18n = require('i18n');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
** next section **
/i18n.configure({
locales:['en', 'de', 'es', 'fr-CA', 'hi', 'ja', 'ko', 'nl', 'pl', 'pt', 'zh-CN', 'hu'],
directory: __dirname + '/locales'
});/
app.js isn't supposed to be run directly - rather ./bin/www
or better yet, just use:
nom start
In order for it to work I had to:
- remove the "i18n" module from app.js
- Install the "async" module, npm and async --save
- Install the "debug" module, npm and debug --save
- Install the "pug" module, npm i pug --save
- Delete "" in layout.pug and all files containing it, example [label.col-sm-2.control-label (for = 'hash') # { ('Hash')}]