playcanvas / playcanvas-sync

Real-time synchronization of files between PlayCanvas and your local machine
https://playcanvas.com/
MIT License
75 stars 18 forks source link

Where to put the target directory?? #22

Closed tidus2020 closed 2 years ago

tidus2020 commented 3 years ago

Error: could not find target directory: . Check capitalization.

I put .pcconfig in the playcanvas-sync-master folder, and set "PLAYCANVAS_TARGET_DIR": "/project"

And run node pcwatch.js diffAll

Christopher-Hayes commented 3 years ago

Hey @tidus2020 I am also getting that error. The error seems to show if you don't have a .pcconfig config file in your home directory. In your case, you put the .pcconfig in your repo folder. If you move that config file to your home directory, I expect the error would be fixed.

yaustar commented 3 years ago

Yes, the .pcconfig has to have at least the target directory so that playcanvas-sync knows where to find the rest of the settings