harry123
harry123
CC#
Created by harry123 on 6/7/2023 in #help
❔ Can't deploy my C# ASP.NET MVC + Postgres app to Azure
Hey ! I am trying to deploy an ASP.NET MVC 7 + EF + Postgres app on Azure but my app crashes on start. Weird thing is that it doesn't seems like it can connect to the database, and it loads the empty value stored in my appsettings.json instead of the ConnectionString i added in Azure. If i don't set the empty string the app just crashes saying that my AZURE_POSTGRESQL_CONNECTIONSTRING connection string is not set. However, when i manually ssh into the server and then set my prod database string it does work... Since i am using a CI/CD pipeline, it is kind of boring to set them every new deploy
12 replies