Sublime Text 2 update direct on site

1

Does anyone know of a way to, when I save the file in Sublime Text 2, it update there on the site? It's not localhost, so I'm always having to upload the file to the server ..

    
asked by anonymous 07.02.2015 / 18:48

1 answer

2

You can use the SFTP package for Sublime Text 2 and 3.

Features:

  • Mapping a local folder to a remote folder.
  • Upload files, folders or just changes since your last commit .
  • Upload all open files.
  • Delete the remote version of a file.

But% w / w is not free . A free alternative is the SFTP that is available for Sublime Text 2 and 3. Some features:

  • Upload and download multiple files and folders.
  • Rename or delete local or remote files.
  • Determine the latest remote files about write protection.

To use it simply mark the folder containing the files for upload in the ftpsync.settings file in the following format (this example does not contain all the options):

{
    'primary': {
        host: 'ftp.mywebsite.com',
        username: 'johnsmith',
        password: 'secretpassword',
        path: '/www/',

        upload_on_save: true,
        tls: true
    }
}

The skeleton can be simply inserted by going to Preferences → Package Settings → FTPSync → Setup FTPSync in this folder , or using the context menu in the sidebar or through the shortcut CTRL + Shift + P . See the full list of settings here .

    
07.02.2015 / 19:46