lenra-io / lenra_cli

The Lenra's command line interface
MIT License
16 stars 1 forks source link

[Task] Create project volumes to save databases data #386

Open taorepoara opened 9 months ago

taorepoara commented 9 months ago

What should be done

When using the Lenra CLI we might want to keep the development data between two tests. When creating many apps we also want to separate one app data from another one.

Add the possibility to keep the data when wanted by the user. It should be a new option to add this to the terminal context.

A shortcut should be added to the dev mode (K as keep ?).

Technical recommandation

Create two folders in the .lenra forder to keep the data only for the given app.

Ecological concerns

By default the stop command remove de volumes.

taorepoara commented 9 months ago

An alternative could be to define volumes in the compose.yml file and define a unique name to the projet (path hash ?) to avoid conflicts between lenra apps