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.
Configure a SQL Server connection string using
ConnectionStrings
inappsettings.json
orappsettings.Development.json
(thelaunchSettings.json
configures the local instance to run as 'Development'):Additionally, it's recommended to configure the local instance to install unattended with the following settings in
appsettings.Development.json
:
The UserName, Email, and Password are optional properties and only needed if you want to set up a local backoffice user. You can use your Umbraco Id to sign in to the backoffice.
On the terminal, navigate to
src/UmbracoProject
folder and run the following commands to start the project: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