Versions Compared

Key

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


This API allows you is called from a command line script to update your the copy of Profound UI to be used by Profound.js from a command line. This should only be used on a non-IBM i system because the proper way to install Profound UI on IBM i is by downloading the Windows Executable (GUI) Installer or the Save File (5250) Installer fromĀ http://www.profoundlogic.com/download.

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();

...