All Projects β†’ HexRx β†’ simple-ftp-deploy

HexRx / simple-ftp-deploy

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

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to simple-ftp-deploy

Sublime-Pretty-Shell
🐚 Shell Script Formatter / Syntax Checker (Powered by shfmt)
Stars: ✭ 28 (+75%)
Mutual labels:  sublime-text, sublime-text-3, sublime-text-plugin, sublime-plugin
sublime-live-server
🌍️ Launch a Development Server directly from Sublime Text
Stars: ✭ 49 (+206.25%)
Mutual labels:  sublime-text, sublime-text-3, sublime-text-plugin, sublime-plugin
CodeChampion
Plays epic sound clips when you write epic code on sublime Text!
Stars: ✭ 30 (+87.5%)
Mutual labels:  sublime-text, sublime-text-3, sublime-text-plugin
zephir-sublime
Sublime Text syntax highlighting for for Zephir
Stars: ✭ 41 (+156.25%)
Mutual labels:  sublime-text, sublime-text-plugin, sublime-plugin
sublime-text
Subime Text 相关衄源攢集整理
Stars: ✭ 62 (+287.5%)
Mutual labels:  sublime-text, sublime-text-3, sublime-text-plugin
CSSFontFamily
CSSFontFamily is a Sublime Text plugin with a collection of font stacks autocomplete.
Stars: ✭ 15 (-6.25%)
Mutual labels:  sublime-text, sublime-text-3, sublime-text-plugin
sublime-import-helper
A Sublime Text Plugin that helps you to import your modules.
Stars: ✭ 69 (+331.25%)
Mutual labels:  sublime-text, sublime-text-plugin, sublime-plugin
Wsl Proxy
WSL proxy files for editor/linux interop
Stars: ✭ 134 (+737.5%)
Mutual labels:  sublime-text, sublime-text-3
Githubinator
Sublime Text plugin that shows selected text on remote GitHub or Bitbucket repo
Stars: ✭ 135 (+743.75%)
Mutual labels:  sublime-text, sublime-text-3
Neon Color Scheme
A colorful bright-on-black color scheme for Sublime Text and TextMate. Its aim is to make as many languages as possible look as good as possible. Includes extended support for Python, Ruby, Clojure, JavaScript/JSON, C/C++, diff, HTML/XML, Markdown, PHP, CSS/SCSS/SASS, GitGutter, Find In Files, PackageDev, Regex, SublimeLinter, and much more.
Stars: ✭ 159 (+893.75%)
Mutual labels:  sublime-text, sublime-text-3
Zeal
Zeal for Sublime Text 2/3
Stars: ✭ 184 (+1050%)
Mutual labels:  sublime-text, sublime-text-3
Nord Sublime Text
An arctic, north-bluish clean and elegant Sublime Text theme.
Stars: ✭ 109 (+581.25%)
Mutual labels:  sublime-text, sublime-text-3
Productive Sublime Snippets Ruby
Ruby Snippets for Sublime Text
Stars: ✭ 109 (+581.25%)
Mutual labels:  sublime-text, sublime-text-3
Editorconfig Sublime
Sublime Text plugin for EditorConfig - Helps developers maintain consistent coding styles between different editors
Stars: ✭ 1,749 (+10831.25%)
Mutual labels:  sublime-text, sublime-text-plugin
Carbonsublime
πŸš€ A Sublime Text 3 Plugin for Carbon. (https://carbon.now.sh)
Stars: ✭ 104 (+550%)
Mutual labels:  sublime-text, sublime-text-3
Css3
The most complete CSS support for Sublime Text
Stars: ✭ 178 (+1012.5%)
Mutual labels:  sublime-text, sublime-text-3
Pythonimproved
The best Python language definition for Sublime Text - ever. Includes full support for Unicode, as well as both Python 2 and Python 3 syntax. Check out the Neon Color Scheme for highlighting.
Stars: ✭ 95 (+493.75%)
Mutual labels:  sublime-text, sublime-text-3
Sublime Jekyll
A Sublime Text package for Jekyll static sites.
Stars: ✭ 160 (+900%)
Mutual labels:  sublime-text, sublime-text-3
Gruvbox
🎨 Sublime Text themes & color schemes with pastel 'retro groove' colors
Stars: ✭ 191 (+1093.75%)
Mutual labels:  sublime-text, sublime-text-3
Projectmaker
A Sublime Text 2/3 plugin to allow creating any kind of project from your own custom templates
Stars: ✭ 233 (+1356.25%)
Mutual labels:  sublime-text, sublime-text-3

Simple FTP Deploy

This package for Sublime Text 3/4 gives you possibility to automatically upload or delete files from FTP server when you save or delete local files and also execute custom triggers.

Features

  • Upload or delete files from FTP server when you locally save or delete files
  • TLS support
  • Highly configurable
  • Automatically create directory if it doesn't exists on the server
  • Execute custom triggers on save / delete (see example usage here)

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

Minimal simple-ftp-deploy.json file:

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

Note: Password is optional. If omitted, you will be asked for it once needed.

Format

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

{
    "host": "localhost",
    "port": 21,
    "username": "user",
    "password": "pass",
    "rootDirectory": "/path/",
    "ignoredFilenames": ["example.py", "anotherFilename.json"],
    "ignoredExtensions": [".ignore", ".txt"],
    "ignoredFolders": ["ignore", "IGNORE"],
    "reuseSessions": true,
    "connectionTimeout": 600,
    "passive": true,
    "useTLS": true,
    "disabledEvents": ["deleteFile"],
    "noPromptEvents": ["createFolder"],
    "triggers": [
        {
            "on": "save",
            "extensions": [".css", ".js"],
            "execute": ".simple-ftp-deploy/minifier.py"
        }
    ]
}

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, optional
The password. If not given, you will be asked for it once needed.

"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.

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

"ignoredExtensions" array of strings, 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 of strings, optional (default: [])
List of folder names to ignore. The file is ignored, 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

"reuseSessions" boolean, optional (default: true)
Whatever FTP session will be reused for next action (keeps session open for "connectionTimeout"; previously named "sessionCacheEnabled").

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

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

"useTLS" boolean, optional (default: false)
Whether to connect to the FTP server with TLS connection (May not work correctly in Sublime Text 3).

"disabledEvents" array of strings, optional (default: [])
List of events that will be disabled (for example if you do not want to click Cancel every time you are asked if you want to delete file(s) from FTP server too) Available events are: "deleteFile"

"noPromptEvents" array of strings, optional (default: [])
List of events that won't prompt you (for example if you do not want to click Delete every time you are asked if you want to delete file(s) from FTP server too) Available events are: "deleteFile", "createFolder"

"triggers" array of triggers (objects), optional (default: [])
List of custom triggers to call when specific event happens. Each trigger can contain:

  • "on" string - When to call trigger (available values: "save" or "delete").
  • "extensions" array of string, optional - For which file extensions call this trigger. See "ignoredExtension" for more info.
  • "filenames" array of string, options - For which filenames call this trigger. See "ignoredFilenames" for more info.
  • "execute" string - Path (relative from project root) to python file to execute

See example usage of triggers here

Contributors

License

The MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].