buttonmen-dev / buttonmen

Buttonmen - an online dice game
Other
16 stars 23 forks source link

Mount /var/log/apache2 from EFS so http logs will be retained across container replacement #2942

Closed cgolubi1 closed 2 months ago

cgolubi1 commented 2 months ago

I created a dev site for this, and it looks good:

$ ls -l /var/log/apache2
lrwxrwxrwx 1 root root 89 May  5 20:10 /var/log/apache2 -> /mnt/efs/2908-retain-apache-logs.cgolubi1.dev.buttonweavers.com/apache_logs/ip-10-0-0-205
$ ls -lart /var/log/apache2/
total 68
-rw-r-----  1 root adm      0 May  5 19:52 other_vhosts_access.log
drwxr-xr-x 17 root root  6144 May  5 20:10 ..
drwxr-x---  2 root adm   6144 May  5 20:10 .
-rw-r-----  1 root adm   2372 May  5 20:15 error.log
-rw-r-----  1 root adm  51675 May  5 20:17 access.log

And the contents of the access and error logs look normal.