Is it possible when setting up the sftp.config “Map to remote” file to also map the “local” file?
For example if I have the following project in sublime text:
My Project/
Deploy/
minified-javascript.js
minified-css.css
Index.html
Source/
JavaScript/
Javascript.js
Css/
Style.css
Index.html
Gruntfile.js
Project.json
Sftp.config
I can map my the remote server to a specific folder, however in my local files, the only files I actually want to sync are the files within the deploy folder. If I try to upload only the files within my deploy folder, it automatically creates new folders on the server instead of just uploading the files to the server.
One solution was to move the sftp.config file into the deploy folder, however anytime I run my build command in grunt, the sftp.config file is deleted.
Is there an easy to sync only part of a project without keeping the full directory structure on the server?