Deploying on WebOS devices
Requirements
Be sure you have setup your device correctly: Setup a new device
And that your profile is configured: Configuration
Serve and debug
To serve your app directly on a WebOS device, open a terminal and type the following command (within your Dana project):
grunt serve --profile=my-webos-profile --deploy --ip="10.1.112.30"
If everything is correctly configured, the app will be launched on the TV and your sources will be watched locally in case of source edits.
To debug the launched app, type the following command:
ares-inspect -app <app-id> -d <device-name>
And open the given link with a Chrome browser. More information here: ares-inspect
Caution
According to the device your app is installed on, the browser version may be older than your local Chrome browser. The debug link may not be compatible. To know if an older version is required, refer to this WebOS documentation
Installing an existing package
After building a WebOS profile, an *.ipk
file is generated. In order to install this specific package on a WebOS TV, use the following command:
ares-install --device <tv-name> your_package.ipk
Get your TV name with the command ares-setup-device --list
More information here: ares-install