Replies: 1 comment
-
The This creates the database, and runs any outstanding migrations for your application. Locally, when you run One way you can do this is to use If you create a
Along with a
Then with the command line you can run:
And then run your app:
Let us know how you go. |
Beta Was this translation helpful? Give feedback.
-
Hi, I am using Sqlite3 database in App_Data folder. The project is a Blazor project based on .NET 8.0
x new blazor MyApp
I can use dotnet publish to create a docker image. However, when I run the app, I am getting an error that complains about not able to open database from /app/App_Data. Do I need to make changes to Dockerfile or add additional code? Is there a way to run dotnet run --AppTasks=migrate to create and populate the sqlite database?
As per one of the videos posted by ServiceStack, .NET 8.0 has build in support for Docker using
dotnet publish
, however, the blazor template uses Dockerfile, can you please explain why it is so? Thanks in advanceBeta Was this translation helpful? Give feedback.
All reactions