Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The API will first check if the an updated version of Profound UI is available. If an update is available, the user is prompted with an option to download the update. Once the download completedcompletes, it is extracted into the configured directory as specified by the staticFilesDirectory setting.

Profound.js ships with a script named updatepui.js that provides for a simple way to use this API. You can call it like this:

Code Block
node updatepui

...


Example

Code Block
languagejavascript
titleupdatepui.js
// Load Profound.js
var profoundjs = require("profoundjs");

// Apply configuration
var config = require("./config.js");
profoundjs.applyConfig(config);

// Try updating Profound UI
profoundjs.updatepui();

...