This is a small Sublime Text plugin for syncing your sublime project directory with a directory on a WebDAV server. That could be useful for WebDAV-based hotdeploy environments. All WebDAV (network) activities are queued and done in an own background thread, so the UI keeps always responsive.
Manually:
Copy the content of this repository into a folder called WebDavSync in your Sublime Text packages directory.
(Open the menu /Preferences/Browse Packages to determine the location of your packages directory)
Via Package Control:
Find WebDavSync in the Package Control installer and install it.
Create a *.sublime-project file (see http://www.sublimetext.com/docs/2/projects.html for further consultation) and add a webdavsync section to the settings.
{
"folders":
[
{
"path": "/path/to/your/project/root",
"folder_exclude_patterns": []
}
],
"settings":
{
"webdavsync":
{
"host":"yourwebdavhost.com",
"protocol":"https",
"path":"/path/to/your/webdav/root",
"username":"yourusername",
"password":"yourpassword"
}
},
"build_systems":
[
]
}
Open this file with Sublime Text (Project/Open Project) and from now on all files in your local root director(ies) are automatically uploaded to yourwebdavhost.com/path/to/your/webdav/root each time you save it there. If folders do not exist on the server, they will be created, before the file is uploaded there.
For example:
-
The local root path is
/projectdir- seefolderssection in your*.sublime-projectfile -
The local file
/projectdir/static/js/app.jsis saved -
The remote root path is
/version1
The resulting webdav resource path is https://yourwebdavhost.com/version1/static/js/app.js and the remote path /version1/static/js will be created if necessary.
- Basic and Digest authentication
- Uploading files and creating folders
- Digest auth-int
- Deleting folders and files