Hwo to force Umbraco to build local DB?
# help-with-umbraco
m
I ma on Umb 13 and just downloaded my git repo to a new computer. Ofcoarse it does not have the local DB so when I do a build/debug in VS it just loads a blank page. How can I force it to build the local DB so I can import all my stuff from a uSync export backup?
r
You can set the
Umbraco:Cms:Unattended
settings along with
uSync:Settings:ImportOnFirstBoot
to do this!
Copy code
json
"Umbraco": {
  "CMS": {
    "Unattended": {
      "InstallUnattended": true,
      "UnattendedUserName": "Admin",
      "UnattendedUserEmail": "admin@example.com",
      "UnattendedUserPassword": "1234567890"
    }
  }
},
"uSync": {
  "Settings": {
    "ImportOnFirstBoot": true
  }
}
m
That seems to have worked. Thank you
c
Another way is just to remove the connection string and it will magically reappear with a brand new SQLite DB 🙂
5 Views