Looking some advice on the best way to develop Umbraco dotnet core on Mac OS and best options for databases.
Keen to avoid Virtual Machine (if possible).
Looking at the official website, Umbraco 10+ supports SQLite databases, which can be run on Windows, Mac and Linux.
For server hosting you should try Kestrel instead of IIS.
Best way to run Umbraco on Mac Os
Hi community,
Looking some advice on the best way to develop Umbraco dotnet core on Mac OS and best options for databases. Keen to avoid Virtual Machine (if possible).
Looking at the official website, Umbraco 10+ supports SQLite databases, which can be run on Windows, Mac and Linux. For server hosting you should try Kestrel instead of IIS.
Hi
I am a MacOS user, and I suggest :
using a normal C# editor (Jetbrains Rider, Visual Studio , VS Code but a but tricky)
a custom Program.cs settings like this one
.ConfigureAppConfiguration((ctx, builder) => { builder.AddJsonFile("appsettings.json", false, false) .AddJsonFile("appsettings.Development.json", optional: true, reloadOnChange: false) .AddJsonFile("appsettings.local.json", optional: true, reloadOnChange: false) .AddEnvironmentVariables(); });
and your appsettings.local.json contains :
"ConnectionStrings": { "umbracoDbDSN": "Server=127.0.0.1;Database=Umbraco;user=SA;password='password';TrustServerCertificate=False;Encrypt=False"},
version: '3.3' services: umbraco-db: container_name: umbraco-db image: mcr.microsoft.com/azure-sql-edge:latest volumes: - ./data:/var/opt/mssql/data:rw environment: ACCEPT_EULA: "1" MSSQL_SA_PASSWORD: "password" MSSQL_PID: "Developer" MSSQL_USER: "SA"
it should be working well.
please note that you need to create a Database (using Azure Data Studio for exemple) named Umbraco inside your brand new container.
is working on a reply...