ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Simple FTP Deploy

by HexRx ST3

This package for Sublime Text 3 give you possibility to auto upload file to FTP server when you save local file.

Labels ftp

Details

Installs

  • Total 45K
  • Win 30K
  • Mac 10K
  • Linux 5K
Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9
Windows 0 6 6 10 0 5 5 7 5 8 8 1 3 13 22 15 5 7 3 1 7 3 11 6 4 1 2 4 6 4 8 8 3 2 8 9 9 4 4 1 4 7 24 6 9 4
Mac 0 2 0 3 0 3 3 0 5 3 5 2 0 2 2 4 4 2 2 0 0 1 2 1 2 2 1 0 0 3 0 0 0 1 1 3 3 2 0 1 4 3 4 2 2 2
Linux 0 1 0 0 3 3 1 1 2 0 0 1 0 0 0 0 0 0 1 1 2 0 0 0 0 0 0 0 1 1 2 0 1 1 1 1 2 0 2 0 1 2 2 3 0 0

Readme

Source
raw.​githubusercontent.​com

Simple FTP Deploy

This package for Sublime Text 3 give you possibility to auto upload file to FTP server when you save local file.

Features

  • Upload to FTP server on local file save
  • Higly configurable
  • Auto creates directory if doesn't exists on server

How to Install

Using Package Control

  1. In Sublime Text open menu Tools -> Command Palette...
  2. Enter Package Control: Install Package
  3. Find and install Simple FTP Deploy

Manual

  1. Download the .zip
  2. Open Packages directory, which you can find using the Sublime Text menu item Preferences -> Browse Packages...
  3. Unzip the archive to this directory.

How to Use

  1. Open folder which contains your local files in Sublime Text - open menu File -> Open Folder... or Project -> Add Folder to Project....
  2. Create new simple-ftp-deploy.json config file in the root of an opened directory (its settings see to configuration section)
  3. Save the config file.
  4. Now open file which you want to edit, it must be located in an opened directory or in the inside folders, if you save it, this file will be upload to FTP server which you entered in the config file.

Configuration

Example simple-ftp-deploy.json file:

{
    "host": "localhost",
    "username": "user",
    "password": "pass"
}

Format

The format is JSON, so every property consists of a key-value pair

{
    "host": "localhost",
    "port": 21, 
    "username": "user",
    "password": "pass",
    "rootDirectory": "/path/",
    "autoCreateDirectory": false,
    "ignoredFilenames": ["example.py", "anotherFilename.json"],
    "ignoredExtensions": [".ignore", ".txt"],
    "ignoredFolders": ["ignore", "IGNORE"],
    "sessionCacheEnabled": true,
    "connectionTimeout": 600,
    "passive": true
}

Properties

"host" string
The hostname or IP address of your FTP server.

"port" number, optional (default: 21)
The port of the FTP server.

"username" string
The username.

"password" string
The password.

"rootDirectory" string, optional (default: "/")
The FTP path to deploy.
Example: in the root of FTP you have three folders site1, site2, site3 and if you need to upload in site2 folder, you must set this property to /site2, because if you skip this property, files will be upload to the root of FTP.

"autoCreateDirectory" boolean, optional (default: false)
Whatever to automatically create a directory if doesn't exist and don't prompt user for acceptation.

"ignoredFilenames" array, optional (default: [])
List of filenames, that are ignored and not uploaded. Note that "simple-ftp-deploy.json" is ALWAYS ignored. Case-sensitive

"ignoredExtensions" array, optional (default: [])
List of extensions to ignore. Note that it only check last extension (so file.tar.gz has extension ".gz") and if you want to ignore files like .htaccess, this file has no extension => use "ignoredFilenames" instead. Case-sensitive

"ignoredFolders" array, optional (default: [])
List of folder names to ignore. The file is ingored, if it is in at least one of the specified folders (so folder1/folder2/file.py is ignored if "ignoredFolders" contains "folder1" and/or "folder2"). Case-sensitive

"sessionCacheEnabled" boolean, optional (default: true)
Whatever FTP session caching is enabled (only for time specified in "connectionTimeout", extends if session is used in that time).

"connectionTimeout" number, optional (default: 600)
Sets timeout for FTP connections and for cache lifetime (in seconds).

"passive" boolean, optional (default: true)
Whether to connect to the FTP server in passive mode.

Contributors

License

The MIT License