Skip to content

Commit

Permalink
🎉 v0.5.7 is out
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Dec 3, 2022
1 parent 857aa71 commit 2adbe43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let config = {
auth_cookie_name: 'blog',
uploadPath: process.env.UPLOAD_PATH || './data/upload',
systemName: 'Blog',
systemVersion: 'v0.5.6',
systemVersion: 'v0.0.0',
cacheMaxAge: 30 * 24 * 3600, // 30 days
maxCachePosts: 32
};
Expand All @@ -15,6 +15,8 @@ function init() {
if (!fs.existsSync(config.uploadPath)) {
fs.mkdirSync(config.uploadPath);
}
let meta = JSON.parse(fs.readFileSync('package.json').toString());
config.systemVersion = `v${meta.version}`
}

init();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blog",
"version": "0.5.6",
"version": "0.5.7",
"private": true,
"scripts": {
"start": "node ./app.js",
Expand Down

0 comments on commit 2adbe43

Please sign in to comment.