-
Notifications
You must be signed in to change notification settings - Fork 24
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
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}
{
"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"
}
}
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.
$ 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
After disconnecting, if you just want to connect and use live reload feature, You can use wits -w