Copy of Working with Linux/macOS
One of the features built into Umbraco Cloud is the ability to work locally with your Umbraco site. This can be done without having a Windows machine with a local web server installed on it. This enables people on macOS or Linux-based OS to use their favorite editor to modify code in their Umbraco Cloud site.
The Solution
On the Umbraco Cloud portal, go to your project and clone the site using your favorite Git client.
Clone project down Configure a SQL Server connection string using
ConnectionStrings
inappsettings.json
orappsettings.Development.json
(thelaunchSettings.json
configures the local instance to run as 'Development'):"ConnectionStrings": { "umbracoDbDSN": "" }
Additionally, it's recommended to configure the local instance to install unattended with the following settings in
appsettings.Development.json
:{ "Umbraco": { "CMS": { "Unattended": { "InstallUnattended": true, "UnattendedUserName": "", "UnattendedUserEmail": "", "UnattendedUserPassword": "" } } } }
On the terminal, navigate to
src/UmbracoProject
folder and run the following commands to start the project:dotnet build dotnet run
When running the site for the first time, the database schema is automatically inserted into the database (with
"InstallUnattended": true
inappsettings.Development.json
), so the site starts up ready for use.
Last updated
Was this helpful?