-
Notifications
You must be signed in to change notification settings - Fork 27
Running Your App using Wits
Hyojin Kim edited this page Mar 24, 2020
·
3 revisions
Open the cli tool at your project path or move to your project path
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)
```
```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"
}
}
```
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.
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
```
After disconnecting, if you just want to connect and use live reload feature, You can use `wits -w`