mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 10:26:21 +00:00
feat(log) add logrotate
This commit is contained in:
4 files changed
+22
-14
No files matched your search
@@ -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
@@ -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 ..
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
/var/log/nocturne/*.log {
|
||||||
|
size 20K
|
||||||
|
compress
|
||||||
|
rotate 10
|
||||||
|
missingok
|
||||||
|
copytruncate
|
||||||
|
delaycompress
|
||||||
|
}
|
||||||
+6
-6
@@ -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 ..
|
||||||
Reference in new issue
Block a user