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
|
||||
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
@@ -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 ..
|
||||
@@ -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
|
||||
|
||||
# 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 ..
|
||||
Reference in new issue
Block a user