No video

Multiple appsettings.json in .net core (Dev, QA, PROD) using appsettings variable

  Рет қаралды 27,041

Techno Saviour

Techno Saviour

Күн бұрын

In this video, I will show you how can you manage multiple appsettings.json files in .net core.
Check out the medium article : / multiple-appsettings-j...
Playlist about Websockets
• Video
Playlist about JWT
• JWT Token
Check out the playlist about RSA
• RSA
Amazon affiliate link for c# book: amzn.to/31q2sXV

Пікірлер: 19
@madruga2112
@madruga2112 2 жыл бұрын
Thanks!! The only tutorial that worked for me!
@Nicetrycutiepie
@Nicetrycutiepie 7 ай бұрын
very clear and detailed explanation bro. have subscribed ur channel
@liveabhishekshukla
@liveabhishekshukla 4 жыл бұрын
Nice and detailed video
@TechnoSaviour
@TechnoSaviour 4 жыл бұрын
Thanks
@HaribabuPasupathy
@HaribabuPasupathy Жыл бұрын
Love you buddy
@sukhpalsandhu6341
@sukhpalsandhu6341 3 жыл бұрын
Good video to explain how it works, could have used the ASPNETCORE_ENVIRONMENT setting in launchSettings.json, already scaffolded.
@TechnoSaviour
@TechnoSaviour 3 жыл бұрын
But if you want to host multiple environment in same server but different ports then environment variable won't help
@TechnoSaviour
@TechnoSaviour 3 жыл бұрын
Also you need to have access to the server if you want to deploy another env like using dev server machine for QA
@TechnoSaviour
@TechnoSaviour 3 жыл бұрын
Plus if you have multiple servers it becomes a problem
@bobweiram6321
@bobweiram6321 Жыл бұрын
Even worse, the Development, Production and Stage are overwritten.
@_hajiyevemin
@_hajiyevemin 2 жыл бұрын
From my point of view instead of seperate appsettings,json file, in one appsettings.json file we can create env, qa connectionstrings
@TechnoSaviour
@TechnoSaviour 2 жыл бұрын
Yes, this is needed when you have one server that hosts multiple environments and you are not using docker
@mmahon512
@mmahon512 3 жыл бұрын
gotcha, very good job! How can you specify which app.settings file to load from the dotnet build cli? something like dotnet build -c qa
@TechnoSaviour
@TechnoSaviour 3 жыл бұрын
you can use the -c or -configuration to pass which configuration you need while building: Ex - dotnet build --configuration QA
@ItsmeRajivS
@ItsmeRajivS 10 ай бұрын
Good video but how to use in release pipeline
@purplepanther4153
@purplepanther4153 3 жыл бұрын
Love the video, thanks for your work. Would you have any reference to connect different database based on user selection from dropdown. let say I don't know what to user select as far as the database goes. How would I be able to pass the db connection to my web api on start up..
@vishalkeshri9695
@vishalkeshri9695 11 ай бұрын
Wow amazing 😊.. and ho can do the same in dot net 6???
@puurusottamsaha8971
@puurusottamsaha8971 3 жыл бұрын
But still i need to remember the "env" while deploying the app.. suppose by mistake i make like this "env=QA" instead of PROD and i deploy the app to production.its a problem.is there any way to avoid this issue??? I understand we should not deploy the config file to prod ,there should be one static config file present in prod every time when we make a release..But for my application i need to add lots of key to config /setting.json file while making a releases ..so i am bound to push my local config file to prod every time when i make a release ..and sometimes i forget to change the connection string of DB..just wanted to know if i can have a way to automate these issue i amusing dot net code.thanks in advance
@FuzzPiAndFacial
@FuzzPiAndFacial 2 жыл бұрын
Can you be so kind to point me to dockerize this
Fortunately, Ultraman protects me  #shorts #ultraman #ultramantiga #liveaction
00:10
Whoa
01:00
Justin Flom
Рет қаралды 34 МЛН
7 Days Stranded In A Cave
17:59
MrBeast
Рет қаралды 94 МЛН
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 155 М.
Secrets and Environment Variables in your GitHub Action
8:12
Dev Leonardo
Рет қаралды 39 М.
How Structured Logging With Serilog Can Make Your Life Easier
13:36
Milan Jovanović
Рет қаралды 48 М.
Forget Controllers and Minimal APIs in .NET!
14:07
Nick Chapsas
Рет қаралды 66 М.
Angular Environmental Variables and Configuration
7:11
Code Shots With Profanis
Рет қаралды 35 М.
How .NET Aspire will save .NET (and its not about "the cloud")
8:54
Fortunately, Ultraman protects me  #shorts #ultraman #ultramantiga #liveaction
00:10