Write versioning in root of application

pull/112/head
Andriy Kushnir (Orhideous) 2016-10-14 00:05:20 +03:00
parent 88ab478392
commit f0edbb5198
3 changed files with 4 additions and 4 deletions

2
.gitignore vendored
View File

@ -14,7 +14,7 @@ __pycache__
/vendor/
# Versioning
/config/*.version
/*.version
# IDEA files
*.iml

View File

@ -278,8 +278,8 @@ $config['sys']['elastic']['hosts'] = [
* Разное
*/
$config['misc']['ga'] = '';
$config['misc']['ver']['front'] = file_get_contents(dirname(__FILE__) . "/frontend.version");
$config['misc']['ver']['code'] = file_get_contents(dirname(__FILE__) . "/backend.version");
$config['misc']['ver']['front'] = file_get_contents(dirname(dirname(__FILE__)) . "/frontend.version");
$config['misc']['ver']['code'] = file_get_contents(dirname(dirname(__FILE__)) . "/backend.version");
$config['misc']['debug'] = false;
// Отключение подсчёта числа страниц для первых страниц ленты комментариев для их ускорения.

View File

@ -77,7 +77,7 @@ cfg =
() ->
@plugin("done", (stats) ->
fs.writeFileSync(
path.join(__dirname, "config", "frontend.version"),
path.join(__dirname, "frontend.version"),
stats.hash
)
)