Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • curtismccaw 27 posts 87 karma points
    Mar 15, 2023 @ 14:43
    curtismccaw
    0

    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).

  • GunsRoseSS 12 posts 82 karma points
    Mar 15, 2023 @ 14:56
    GunsRoseSS
    0

    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.

  • wmotr 16 posts 146 karma points
    Mar 17, 2023 @ 10:59
    wmotr
    100

    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"},

    • using a docker-compose.yml that you start in Docker, with this kind of template :

    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.

Please Sign in or register to post replies

Write your reply to:

Draft