AlexsLemonade / refinebio

Refine.bio harmonizes petabytes of publicly available biological data into ready-to-use datasets for cancer researchers and AI/ML scientists.
https://www.refine.bio/
Other
125 stars 18 forks source link

Move logs and static files from /tmp to /var #3452

Open davidsmejia opened 8 months ago

davidsmejia commented 8 months ago

Context

Currently, when we launch the API we write Nginx access and error logs to /tmp as well as serving generated static files. This seem to be an issue after deploy. Trying to tail logs from /tmp/access.log does nothing which indicates that the container cannot write to that file. Similarly, static files are unable to be served from /tmp.

Problem or idea

We should move nginx logs and static content to their appropriate location in /var. Nginx logs should be located at /var/log/nginx/access.log and /var/log/nginx/error.log Static content should be served in nginx from /var/www/volumes_static

Solution or next step