diff --git a/README.md b/README.md index 8cda147..c8ea3a4 100644 --- a/README.md +++ b/README.md @@ -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
diff --git a/dev_server.sh b/dev_server.sh
index e7f1b63..2082756 100755
--- a/dev_server.sh
+++ b/dev_server.sh
@@ -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 ..
diff --git a/logrotate b/logrotate
new file mode 100644
index 0000000..76bd185
--- /dev/null
+++ b/logrotate
@@ -0,0 +1,8 @@
+/var/log/nocturne/*.log {
+ size 20K
+ compress
+ rotate 10
+ missingok
+ copytruncate
+ delaycompress
+}
diff --git a/start_server.sh b/start_server.sh
index 1fcad67..cfde8ca 100755
--- a/start_server.sh
+++ b/start_server.sh
@@ -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 ..