You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a pode.json config file that can be used - though only for static page defaults currently. This issue is to extend that, so that the config file can be used for custom things - like port numbers, hostnames, or other app settings the user so desires:
A new Get-PodeConfiguration function to return the contents of the pode.json file (if it exists)
The configuration is reloaded on an internal restart
Improved documentation for the pode.json file
Support for multi-environmental configs via a PODE_ENVIRONMENT env-var. So pode.dev.json if it's dev, or the default of pode.json for not set
The text was updated successfully, but these errors were encountered:
Also, what about multiple enviromental configs ? Supporting stuff such as pode.[ENVIRONMENT.]json would be probably cool, where environment could be specified via env var.
At the moment it's loaded automatically when you start the server, and only looks for a pode.json at the root. There are key defined sections in there, for web/tcp/smtp/service (so the 4 server types) however, it's just basic JSON and loaded as such - so you can add anything else you want in there.
It's only accessible and used internally currently, so this issue is so that anyone can use it.
I hadn't actually thought of doing a pode.[ENV.]json, but I do like that so I'll add it as a task.
There is a
pode.json
config file that can be used - though only for static page defaults currently. This issue is to extend that, so that the config file can be used for custom things - like port numbers, hostnames, or other app settings the user so desires:Get-PodeConfiguration
function to return the contents of thepode.json
file (if it exists)pode.json
filePODE_ENVIRONMENT
env-var. Sopode.dev.json
if it'sdev
, or the default ofpode.json
for not setThe text was updated successfully, but these errors were encountered: