Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add minimum node.js version + rearrange steps
  • Loading branch information
Dhilan-Shivji committed Mar 1, 2023
commit fd6bbcc496d88fe2470c6994e5619f84677167c7
38 changes: 20 additions & 18 deletions self-hosting-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,9 @@

This example has been created to demonstrate how an internal CDN will work. Please note that for this demo you will need access to the OpenFin CDN to pull down the latest runtime. If you are completely offline and or cannot download from the OpenFin CDN please reach out to **[email protected]** and we will provide you with the runtime offline.

## Step 1: Host Your Assets
> Please note a minimum of node.js version 12 is required to run this example

To host this sample project:

Please navigate to self-hosting-example folder via command line

*The directory created when **npm run build** is executed is the structure of the `public` directory, which mirrors the OpenFin [CDN](http://cdn.openfin.co/versions/).*

```
npm install
npm run build
npm start
```

This will launch a webserver (on port 5555 or PORT environment variable).

To deploy your own, simply copy the public directory (or its structure) and host it with the web server of your choice.

## Step 2: Point To Your Assets
## Step 1: Set your assets location

We recommend using Desktop Owner Settings to point to your assets. Desktop owner settings are global settings that control aspects of the OpenFin environment on an individual computer or device.

Expand All @@ -45,6 +29,24 @@ Registry entry:
`Value Data: https://example.com/company/files/end-user-desktop-owner-settings.json`


## Step 2: Host Your Assets

To host this sample project:

Please navigate to self-hosting-example folder via command line

*The directory created when **npm run build** is executed, is the structure of the `public` directory, which mirrors the OpenFin [CDN](http://cdn.openfin.co/versions/).*

```
npm install
npm run build
npm start
```

This will launch a webserver (on port 5555 or PORT environment variable).

To deploy your own, simply copy the public directory (or its structure) and host it with the web server of your choice.


## Demo

Expand Down