feat(log) add logrotate

This commit is contained in:
lumither committed 2024-06-19 00:01:20 +08:00
1 parent ef0f6b335e
commit 9081e9a86d
4 files changed
+22 -14

No files matched your search

+2 -2
View File
@@ -1,9 +1,9 @@
# `lumither.com`
# `Nocturne: personal website & CMS`
This is the code repo of my personal website, and [here](https://github.com/Lumither/blog-posts/) is the link of the
content repo.
Build with Next.js, Rust with passion and love www
Powered by Next.js and Rust, built with passion and love
<p align="center">
<img src="https://avatars.githubusercontent.com/u/46409277?v=4" alt="GitHub Avatar"/>
+6 -6
View File
@@ -4,11 +4,11 @@
/bin/bash ./flush_env.sh
# start frontend
cd frontend;
screen -S blog_frontend -d -m bun dev;
cd ..;
cd frontend || exit
screen -S nocturne_frontend -d -m bun dev
cd ..
# start backend
cd backend;
screen -S blog_backend -d -m cargo r;
cd ..;
cd backend || exit
screen -S nocturne_backend -d -m cargo r
cd ..
+8
View File
@@ -0,0 +1,8 @@
/var/log/nocturne/*.log {
size 20K
compress
rotate 10
missingok
copytruncate
delaycompress
}
+6 -6
View File
@@ -4,12 +4,12 @@
/bin/bash ./flush_env.sh
# start frontend
cd frontend;
cd frontend || exit
bun next build
screen -S blog_frontend -d -m bun start;
cd ..;
screen -S nocturne_frontend -d -m bun start
cd ..
# start backend
cd backend;
screen -S blog_backend -d -m cargo r -r;
cd ..;
cd backend || exit
screen -S nocturne_backend -d -m cargo r -r
cd ..