If Umbraco finds a connectionstring in the web.config it will assume a database and schema are setup. So remove the connectionstring, run the site and the install page should show up.
Ok, it's been a while but I'm now at a point where I need to sort this out.
So, I have an umbraco solution made up of a .core project for custom code and a .web project for umbraco, source controlled in git.
The project is using dll models builder.
I have restored a copy of the production database and configured a user.
The web.config for debug has a connection string to point to the local database with the correct user.
Production environment is running as a appService in Azure.
If I pull the repo to a new machine and build solution, the build fails due to the .core project making use of some of the umbraco models from the web project.
As those models have not been generated yet (as umbraco is not running), the solution cannot compile.
What is the best way to get this solution running locally, using the restored database?
Setup Visual Studio for Existing Umbraco Site from repo on new development machine
I have an umbraco site (v8) developed on another machine, in Visual Studio 2017. On the old machine I have usync & usync content installed.
The site was running fine.
Usync has been used to export the site and everything has been committed to a git repo.
On my new laptop I have cloned the repo so have the code, including usync folder.
I have created a new SQL server database named the same and created a user on that database with the same user.
Web.config connection string is set (local host).
When I CTRL+F5 to run the site from visual studio I get:
How do I get the site running locally on the new laptop? Do I need to backup / restore the database from my old machine?
I was hoping I could get umbraco running and use usync to get everything back inline?
If Umbraco finds a connectionstring in the web.config it will assume a database and schema are setup. So remove the connectionstring, run the site and the install page should show up.
Ok, it's been a while but I'm now at a point where I need to sort this out.
So, I have an umbraco solution made up of a .core project for custom code and a .web project for umbraco, source controlled in git.
The project is using dll models builder.
I have restored a copy of the production database and configured a user.
The web.config for debug has a connection string to point to the local database with the correct user.
Production environment is running as a appService in Azure.
If I pull the repo to a new machine and build solution, the build fails due to the .core project making use of some of the umbraco models from the web project.
As those models have not been generated yet (as umbraco is not running), the solution cannot compile.
What is the best way to get this solution running locally, using the restored database?
Thanks Jason
I have the site running locally, here are the steps taken:
The site is now running successfully, against the restored database.
So my only question is: Is there a better way to deal with the missing generated umbraco models?
is working on a reply...