Skip to content

Commit c20db28

Browse files
authored
Merge pull request #7257 from umbraco/linux
Merged contents of Working with Linux/macOS into Working locally article
2 parents eaf1154 + e619c51 commit c20db28

File tree

4 files changed

+48
-51
lines changed

4 files changed

+48
-51
lines changed

umbraco-cloud/.gitbook.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,4 @@ redirects:
131131
monitor-and-troubleshoot/availability-performance: optimize-and-maintain-your-site/monitor-and-troubleshoot/availability-performance.md
132132
set-up/media/connect-to-azure-storage-explorer: build-and-customize-your-solution/handle-deployments-and-environments/media/azure-blob-storage/connect-to-azure-storage-explorer.md
133133
set-up/working-locally/working-with-visual-studio: build-and-customize-your-solution/handle-deployments-and-environments/working-locally/legacy-umbraco-visual-studio-setup.md
134-
134+
build-and-customize-your-solution/working-with-linux-macos: build-and-customize-your-solution/handle-deployments-and-environments/working-locally/README.md

umbraco-cloud/SUMMARY.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
* [Connect and Upload Files Programmatically to Azure Blob Storage](build-and-customize-your-solution/handle-deployments-and-environments/media/azure-blob-storage/connect-programatically-to-azure-storage.md)
7979
* [Manage Environments](build-and-customize-your-solution/handle-deployments-and-environments/manage-environments.md)
8080
* [Sustainability Best Practices](https://docs.umbraco.com/sustainability-best-practices/)
81-
* [Copy of Working with Linux/macOS](build-and-customize-your-solution/working-with-linux-macos.md)
8281

8382
## Expand Your Project’s Capabilities
8483

umbraco-cloud/build-and-customize-your-solution/handle-deployments-and-environments/working-locally/README.md

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,4 +230,50 @@ The file you'll need to update is `post-merge` within `.git/hooks/` in your clo
230230
echo > src/UmbracoProject/umbraco/Deploy/deploy
231231
```
232232

233-
***
233+
## Working with Linux/macOS
234+
235+
You can work locally with your Umbraco Cloud site without needing a Windows machine or a local web server installed. This enables users on macOS or Linux-based operating systems to use their preferred editor to modify code in their Umbraco Cloud site.
236+
237+
### The Solution
238+
239+
1. On the Umbraco Cloud portal, go to your project and clone the site using your favorite Git client.
240+
241+
<figure><img src="../../../.gitbook/assets/image (15).png" alt="Clone project down"><figcaption><p>Clone project down</p></figcaption></figure>
242+
243+
2. Configure a SQL Server connection string using `ConnectionStrings` in `appsettings.json` or `appsettings.Development.json` (the `launchSettings.json` configures the local instance to run as 'Development'):
244+
245+
```json
246+
"ConnectionStrings": {
247+
"umbracoDbDSN": ""
248+
}
249+
```
250+
251+
3. Configure the local instance to install unattended by adding the following settings to `appsettings.Development.json`:
252+
253+
```json
254+
{
255+
"Umbraco": {
256+
"CMS": {
257+
"Unattended": {
258+
"InstallUnattended": true,
259+
"UnattendedUserName": "",
260+
"UnattendedUserEmail": "",
261+
"UnattendedUserPassword": ""
262+
}
263+
}
264+
}
265+
}
266+
```
267+
268+
{% hint style="info" %}
269+
The `UnattendedUserName`, `UnattendedUserEmail`, and `UnattendedUserPassword` are optional. They are only required if you want to create a local backoffice user. You can alternatively use your Umbraco ID to sign in.
270+
{% endhint %}
271+
272+
4. In your terminal, navigate to the `src/UmbracoProject` folder and run the following commands to start the project:
273+
274+
```
275+
dotnet build
276+
dotnet run
277+
```
278+
279+
5. When running the site for the first time, the database schema will be inserted automatically into the database (with `"InstallUnattended": true` in `appsettings.Development.json`), so the site will start up ready for use.

umbraco-cloud/build-and-customize-your-solution/working-with-linux-macos.md

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)