Runtime created files stored in /app

Open
#87 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Quiet
Tech stack
docker, html
Domain
backend

Research direction

Start by locating the city_light initialization path mentioned in the issue and tracing where runtime paths are constructed. Search the application for files written beneath /app, including uploads, caches, temporary files, reports, databases, and logs; the issue names no specific files or tests. Done means runtime-generated files use the configurable /var/chaotica base path rather than /app.

Written by the indexing model from the issue text.

Description

Overview

At the moment, Chaotica creates and stores runtime-generated files inside /app/. Since /app/ should ideally contain only source code and static assets, it would be cleaner (and more container-friendly) to store all runtime data under /var/chaotica.

Problem:

Runtime files are currently written into /app/, which mixes application code with mutable data.
This makes it harder to run the app with /app mounted read-only (a common best practice for containers).

Proposed Change

Standardize runtime storage under:
/var/chaotica
Update the application so any files created at runtime (uploads, caches, temp files, generated reports, sqlite/db files, logs, etc.) are written beneath /var/chaotica instead of /app.

Suggested Implementation Notes

  • use the single configurable base path based on the one i used for city_light initialisation (/var/chaotica/cities_light) and use it everywhere runtime paths are constructed.

Why

Separating immutable app code (/app) from mutable runtime data (/var/chaotica) improves cleanliness, and deployment ergonomics—especially for Docker-based workflows. The hope being the dev lifecycle can be locally based on the docker container and allow for hot patching while doing so.

Dominant language
HTML
Stars
6
Forks
4
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from brainthee/CHAOTICA

All issues in brainthee/CHAOTICA

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.