Consistency changes:
* STATIC_ROOT => STATIC_DIRECTORY to match the configuration variable name. * Update local.json-dist to declare static_directory
This commit is contained in:
Родитель
576a948976
Коммит
9d7acccaee
|
@ -22,7 +22,7 @@ const routes = require('../lib/routes');
|
||||||
// Side effect - Adds default_fxa and dev_fxa to express.logger formats
|
// Side effect - Adds default_fxa and dev_fxa to express.logger formats
|
||||||
const routeLogging = require('../lib/logging/route_logging');
|
const routeLogging = require('../lib/logging/route_logging');
|
||||||
|
|
||||||
const STATIC_ROOT =
|
const STATIC_DIRECTORY =
|
||||||
path.join(__dirname, '..', '..', config.get('static_directory'));
|
path.join(__dirname, '..', '..', config.get('static_directory'));
|
||||||
const VIEWS_ROOT = path.join(__dirname, '..', 'views');
|
const VIEWS_ROOT = path.join(__dirname, '..', 'views');
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ function makeApp() {
|
||||||
|
|
||||||
routes(app);
|
routes(app);
|
||||||
|
|
||||||
app.use(express.static(STATIC_ROOT));
|
app.use(express.static(STATIC_DIRECTORY));
|
||||||
return app;
|
return app;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,5 +9,5 @@
|
||||||
"use_https": false,
|
"use_https": false,
|
||||||
"supported_languages": ["en-US"],
|
"supported_languages": ["en-US"],
|
||||||
"route_log_format": "dev_fxa",
|
"route_log_format": "dev_fxa",
|
||||||
"static_root": "app"
|
"static_directory": "app"
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче