Skip to content

Running Your App using Wits

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

Running Your App

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.

```sh

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

    > [ Stored Information ]
    > baseAppPath : E:/dev/workspace/WitsTest
    > width       : 1920
    > ip          : 192.168.250.250
    > port        : 6321
    > isDebugMode : true

? .witsconfig.json is already exist. Do you want to use this data for running Wits? (Y/n)
```

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

```js
{
    "connectionInfo": {
        "recentlyBaseAppPath": ".",
        "baseAppPaths": [
        "."
        ],
        "width": "1920",
        "ip": "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.

```sh

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

     > [ Stored Information ]
     > baseAppPath : E:/dev/workspace/WitsTest
     > width       : 1920
     > ip          : 192.168.250.250
     > port        : 1233

? .witsconfig.json is already exist. Do you want to use this data for running Wits? No
? Input your Application Path : .
? Input your Application width (1920 or 1280) : 1920
? Input your TV Ip address(If using Emulator, input 0.0.0.0) : 192.168.250.250
? Do you want to launch with chrome DevTools? : Yes
```

5. Reconnect

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

Clone this wiki locally