public
/
ndcode_site.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f244e3
)
Fix directory bug in rotating /database.logjson
author
Nick Downing
<nick@ndcode.org>
Tue, 11 Jan 2022 00:53:35 +0000
(11:53 +1100)
committer
Nick Downing
<nick@ndcode.org>
Tue, 11 Jan 2022 00:55:08 +0000
(11:55 +1100)
_config/site.jst
patch
|
blob
|
history
diff --git
a/_config/site.jst
b/_config/site.jst
index
8944a3f
..
27a7a5f
100644
(file)
--- a/
_config/site.jst
+++ b/
_config/site.jst
@@
-74,7
+74,9
@@
return async (resources, root, prev_site) => {
'->',
new_database_date
)
- await this.database.rotate('database.logjson.' + this.database_date)
+ await this.database.rotate(
+ `${this.root}/database.logjson.${this.database_date}`
+ )
this.database_date = new_database_date
}