I published my site and now it can't find the database
Can anyone tell me what file I need to check for resetting the database connection, It seems like I published my site and not I am getting the set up screen
I check the appsettings.json and appsettings.{Enviroment}.json and the database information seems to be correct. but when I go to the domain I am seeing
I published my site and now it can't find the database
Can anyone tell me what file I need to check for resetting the database connection, It seems like I published my site and not I am getting the set up screen
Hi Yaco.
Do you have a file called appsettings.json or appsettings.Production.json?
Inside there should be a field to enter your connectionstring like...
How do I set what environment it will use?
in my appsettings.json I have
"CMS": { "Runtime": { "Mode": "Development" },
and I have a appsettings.Development.json file with the following connection string
There is an environment variable named ASPNETCORE_ENVIRONMENT that you can change. There is a link here where you can read different suggestions. https://stackoverflow.com/questions/41546943/how-to-set-aspnetcore-environment-to-be-considered-for-publishing-an-asp-net-cor
I use Web.config with transformation on publish.
Web.config
Web.Release.config
and then it would use the appsettings.Production.json.
I check the appsettings.json and appsettings.{Enviroment}.json and the database information seems to be correct. but when I go to the domain I am seeing
can anyone help me?
Do you use the same database when you deploy?
If not, is the database you then use maybe empty?
I cloned the database and its the same on both servers (Dev and Live)
is working on a reply...