Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate about multiple environments #15

Open
akakshuki opened this issue Feb 16, 2024 · 0 comments
Open

Investigate about multiple environments #15

akakshuki opened this issue Feb 16, 2024 · 0 comments
Assignees

Comments

@akakshuki
Copy link
Member

akakshuki commented Feb 16, 2024

Is your feature request related to a problem? Please describe.
The project can swap config files or connection strings between environments

Describe the solution you'd like
The project can hide the aspnet setting files or at least use the environments variable to define environments

Ex:
when setting the ASPNET_ENV='development'
The aspnet config file will be set the connection string to

    "DefaultConnection": "Host=localhost:5432;Username=planthor-admin;Password=Planthor@123;Database=PLANTHOR_IDENTITY"

or set ASPNET_ENV='container_development'

   "DefaultConnection": "Host=postgres:5432;Username=planthor-admin;Password=Planthor@123;Database=PLANTHOR_IDENTITY"

and Production configs can be hidden in the Azure key vault

Additional context
Document links: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/environments?view=aspnetcore-8.0

@akakshuki akakshuki self-assigned this Feb 16, 2024
@akakshuki akakshuki moved this to Todo in Planthor v1.0.0 Feb 16, 2024
@akakshuki akakshuki changed the title Investigate about multiple environments [draft] Investigate about multiple environments Feb 16, 2024
@akakshuki akakshuki changed the title [draft] Investigate about multiple environments Investigate about multiple environments Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant