EnAccess / micropowermanager

Open Source Management Tool for Decentralized Utilities.
https://micropowermanager.io/
MIT License
2 stars 4 forks source link

[Feature Request]: Load Demo Data based on Environment variable #344

Open dmohns opened 1 week ago

dmohns commented 1 week ago

Preflight Checklist

Problem Description

Currently, manual actions is required at run time to load the Demo data into the application. But for ease of deployment it would be nice if the behaviour could be controlled by an ENV variable at container level.

Proposed Solution

Please add an ENV variable (for example MPM_DEMO_DATA) that, if set to true loads the Demo data on initial container start. The default behaviour should be false, i.e. not loading the demo data.

Note: There is a complexity on how to detect whether or not Demo has already been loaded. Please confirm if we are currently able to do so and if not change to logic of Seeder accordingly.

Alternatives Considered

N/A

Additional Information

No response