Skip to content

Running Your App using Wits

Hyojin Kim edited this page Mar 31, 2020 · 3 revisions

Open the cli tool at your project path or move to your project path

1. Configuration for the first time

After running wits -i, you can see .witsconfig.json and .witsignore files are created at your project.

    $ wits -i
    Start configuration for Wits............
    .witsignore is prepared.
    .witsconfig.json is prepared.

    {You will be asked some questions for configurating Wits}

2. Open .witsconfig.json file to set your connection Information and profile Information

    {
        "connectionInfo": {
            "width": "1920",
            "deviceIp": "192.168.250.250",
            "hostIp": "192.168.250.250",
            "port": 8498,
            "isDebugMode": false
        },
        "profileInfo": {
            "name": "yourProfileName",
            "path": "C:/tizen-studio-data/profile/profiles.xml"
        }
    }

3. Turn on the TV device (Enabled Developer Mode)

Make sure for using wits with TV device, It should be used same network as your PC one. Also It is required developer mode is enabled.

4. Start wits

Once you type wits -s, wits will do everything such as connecting to TV, installing your app, launching your app, pushing your local files, even watching your changes on your local codes.

    $ wits -s
Start running Wits............

      > [ Stored Information ]

      > baseAppPath  : E:/dev/workspace/WitsTest
      > width        : 1920
      > deviceIp     : 192.168.250.250
      > socketPort   : 2276
      > isDebugMode  : false

      > profile name : witstest
      > profile path : C:/tizen-studio-data/profile/profiles.xml

      > hostIp       : 10.88.106.190

? .witsconfig.json is already exist. Do you want to use this data for running Wits? No
? Input your Device Ip address(If using Emulator, input 0.0.0.0) : 192.168.250.250
? Input your Application width (1920 or 1280) : 1920
? Input your actived profile name : test
? Input the path of profile.xml : C:/tizen-studio-data/profile/profiles.xml
? Do you want to launch with chrome DevTools? :  No

5. Reconnect

After disconnecting, if you just want to connect and use live reload feature, You can use wits -w