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 This is the code repo of my personal website, and [here](https://github.com/Lumither/blog-posts/) is the link of the
content repo. 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"> <p align="center">
<img src="https://avatars.githubusercontent.com/u/46409277?v=4" alt="GitHub Avatar"/> <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 /bin/bash ./flush_env.sh
# start frontend # start frontend
cd frontend; cd frontend || exit
screen -S blog_frontend -d -m bun dev; screen -S nocturne_frontend -d -m bun dev
cd ..; cd ..
# start backend # start backend
cd backend; cd backend || exit
screen -S blog_backend -d -m cargo r; screen -S nocturne_backend -d -m cargo r
cd ..; 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 /bin/bash ./flush_env.sh
# start frontend # start frontend
cd frontend; cd frontend || exit
bun next build bun next build
screen -S blog_frontend -d -m bun start; screen -S nocturne_frontend -d -m bun start
cd ..; cd ..
# start backend # start backend
cd backend; cd backend || exit
screen -S blog_backend -d -m cargo r -r; screen -S nocturne_backend -d -m cargo r -r
cd ..; cd ..