aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-08-24 09:05:12 -0300
committerEuAndreh <eu@euandre.org>2024-08-24 09:05:12 -0300
commit8bf1591e8da7f7cc53aed3c11843a57c8c467300 (patch)
treed5bcfe834035eac193320a59108e9acf3f08b15d
parentMakefile: Simplify building system.scm.sentinel (diff)
downloadserver-8bf1591e8da7f7cc53aed3c11843a57c8c467300.tar.gz
server-8bf1591e8da7f7cc53aed3c11843a57c8c467300.tar.xz
Makefile: Adjust "logs" and "all-logs" to subdirectory structure
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 9349921..dcfb758 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ NAME = server
NAME_UC = $(NAME)
TLD = euandre.org
OFFSITE_SSH = zh3051@zh3051.rsync.net
-APP = app
+APP = papod
@@ -82,12 +82,12 @@ $(all-secrets.txt.gpg):
## Prints the latest 500 lines of the application and keeps tailing it.
logs:
- ssh $(TLD) tail -fn500 /var/log/$(APP).log
+ ssh $(TLD) tail -fn500 /var/log/$(APP)/$(APP).log
## Print *all* logs available on the server.
all-logs:
- ssh $(TLD) 'nicely cat /var/log/$(APP).log.* && \
- nicely gzip -c /var/log/$(APP).log' | gunzip
+ ssh $(TLD) 'nicely cat /var/log/$(APP)/$(APP).log.* && \
+ nicely gzip -c /var/log/$(APP)/$(APP).log' | gunzip
## Decrypt $(prod-secrets.txt) in `src/secrets/` and put them in their