updated the default warning and path for static content path

This commit is contained in:
bill bittner 2018-04-02 12:14:23 -07:00
parent da6fe2dc1d
commit 0723b52fd7
2 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View file

@ -50,9 +50,9 @@ function Server () {
app.use(express.static(publicFolder)); app.use(express.static(publicFolder));
logger.info('serving static files from custom path:', publicFolder); logger.info('serving static files from custom path:', publicFolder);
} else { } else {
const publicPath = Path.resolve(__dirname, 'public'); const publicPath = Path.resolve(process.cwd(), 'static');
app.use(express.static(publicPath)); app.use(express.static(publicPath));
logger.info('serving static files from default path:', publicPath); logger.warn(`serving static files from default static path at ${publicPath}. Please specify a path in your config/siteConfig.js file`, );
}; };
// 'body parser' for parsing application/json // 'body parser' for parsing application/json
app.use(bodyParser.json()); app.use(bodyParser.json());