Configuration Management
Adding Keys and Configuration Variables via rIDE - COMING SOON!
Keys and Configuration Variables are important if you need to utilize sensitive keys, passwords, or secrets that you don’t want to expose in your app. It’s also a great way to set variables that you can easily change over time without having to rebuild your app.
Frontend Configuration
Section titled “Frontend Configuration”This feature is coming soon to rIDE.
There is currently no way to update frontend variables within rIDE. Most of the time you shouldn’t need to add front-end variables.
Stored in: “.env”
C:\Users\<Your-User>\CodeBuddy\Projects\<Your-Project-Name>\react-app\.env
Backend Configuration
Section titled “Backend Configuration”This feature is coming soon to rIDE.
To manually update backend variables, ask the AI Code Editor to add the variable to AppConfiguration.c and then manually add it to appsettings.develpoment.json file.
Stored in: “Appsettings.development.json”
C:\Users\<Your-User>\CodeBuddy\Projects\<Your-Project-Name>\Services\App.Api\Appsettings.development.json
NOTE: The .env and appsettings.development.json files are git ignored so RIDE AI will not be able to access them to add keys and settings. rIDE will add new configuration settings to your AppConfiguration for the backend and but will not add them to your appsettings.development.json. You will need to go find the file in your File Explorer and manually add them.
Adding Variables to Hosted Environments
Section titled “Adding Variables to Hosted Environments”This feature is coming soon to rIDE.
To manually update, see the steps below.
You will need to manually add configuration settings as environment variables to your local and variables on Azure app service for the environment.
To do so, go to your Project -> click on Publish Your Software -> click View on the Backend of the Environment you want to add a variable. rIDE will navigate you to the Azure portal. On the portal. Click on Resourc groups to find the resource group that matches your project. Click on the App Service (should end in -webapp). Click on Settings dropdown in left sidebar and then click Environment variables. Click + Add. YOu will need to prefix your variable with AppConfiguration__ (Note: it uses TWO underscores). Then provide the value of the configuration setting.
Known Issue | Troubleshooting | Status |
---|---|---|
No way to add config settings via RIDE to appsettings.development.json, .env folder, or to GitHub Environment Secrets and Variables or Azure App Service Environment Variables. | Manually add config settings. | Not Reported. |