* STATIC_ROOT => STATIC_DIRECTORY to match the configuration variable name.
* Update local.json-dist to declare static_directory
This commit is contained in:
Shane Tomlinson 2013-12-11 18:02:01 +00:00
Родитель 576a948976
Коммит 9d7acccaee
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -22,7 +22,7 @@ const routes = require('../lib/routes');
// Side effect - Adds default_fxa and dev_fxa to express.logger formats
const routeLogging = require('../lib/logging/route_logging');
const STATIC_ROOT =
const STATIC_DIRECTORY =
path.join(__dirname, '..', '..', config.get('static_directory'));
const VIEWS_ROOT = path.join(__dirname, '..', 'views');
@ -40,7 +40,7 @@ function makeApp() {
routes(app);
app.use(express.static(STATIC_ROOT));
app.use(express.static(STATIC_DIRECTORY));
return app;
}

Просмотреть файл

@ -9,5 +9,5 @@
"use_https": false,
"supported_languages": ["en-US"],
"route_log_format": "dev_fxa",
"static_root": "app"
"static_directory": "app"
}