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

Change from using "pode.<env>.json" files to "server.<env>.psd1" files #303

Closed
Badgerati opened this issue Jul 6, 2019 · 1 comment · Fixed by #322
Closed

Change from using "pode.<env>.json" files to "server.<env>.psd1" files #303

Badgerati opened this issue Jul 6, 2019 · 1 comment · Fixed by #322

Comments

@Badgerati
Copy link
Owner

At the moment Pode uses pode.<env>.json files for settings and configuration.

For v1.0.0 this should be changed to normal PowerShell standard of using .psd1 files, and the name format altered to: server.<env>.psd1.

These files can be read in using Import-PowerShellDataFile -Path '<path>' on PS5+.

  • Current rules using $env:PODE_ENVIRONMENT to determine which config file to use should remain the same.
  • Settings and Config supported in the current format should also be supported in the new (unless another v1.0.0 issue drops it, but not for this issue).
@Badgerati Badgerati added this to the 1.0.0 milestone Jul 6, 2019
@Badgerati Badgerati added this to To do in Function Syntax Refactor via automation Jul 28, 2019
@Badgerati Badgerati moved this from To do to In progress in Function Syntax Refactor Aug 5, 2019
@Badgerati Badgerati self-assigned this Aug 5, 2019
@Badgerati
Copy link
Owner Author

This issue does also mean that PS3/4 will become unsupported from v1.0.0+. This was already going to happen due to the work on integrating Kestrel and the requirement for classes.

  • The pode.psd1 should be updated to a minimum version of 5.0.
  • The README/Documentation should be updated to remove the "PS3/4 Support".

Function Syntax Refactor automation moved this from In progress to Done Aug 6, 2019
Badgerati added a commit that referenced this issue Aug 6, 2019
#303: Change from json to psd1 config file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant