Code Monkey home page Code Monkey logo

sublimeliversync's Introduction

Live Rsync BETA plugin for Sublime Text 3 (only)

This plugin was made because 2 weeks of painfull trying to launch lsyncd on Mac OS X. Live Rsync uses 'rsync' command line application to synchronize with remote servers.

Just clone it in your Packages directory, edit your Project file with settings

For every folder in project you can set settings, and some part of this settings you can set global in RsyncHandler settings file.

    {
        "folders":
        [
            {
                "follow_symlinks": true,
                "path": "/some/path",
                "live_rsync": {
                    //settings here
                }
            }
        ]
    }

Settings

Destination

    "destination" : "user@server:/path/to/upload",

Destination to sync. If you want to sync via ssh - add user name to login.

Exclude patterns

    "exclude" : "*git*",

Exclude files, folders - just rsync exclude format.

Rsync Settings

    "sync_settings" : "urvz",

Default is update, recursive, verbose and zip.

SSH

    "ssh" : true,

Boolean flag, if true it will connect to remote server through ssh

Full update folder on sublime start / project change

    "full_update_on_start" : true,

If set true - tries update folder on destination server when current Project changed to another and when Sublime starting.

Commands

Available in "Go To Anywhere" prefixed "LiveRsync:"

Upload Current File

Uploads only one current file to destination of folder.

Upload Full Project

Uploads every folder of project with settings to this folder

Disable\Enable Auto-uploading

Stops\Starts auto uploading when file changes

Show latest logs

Here you can see debug information (updates automatically) about whats going on with your updates

When you save file, it'll uploads automatically (if setting turned on) and after upload finished you will see 'LR: Done.' in status bar of current View.

sublimeliversync's People

Stargazers

Einar Gangsø avatar Alexander Tsirel avatar

Watchers

Seva Ivanov avatar

Forkers

imclab

sublimeliversync's Issues

TypeError: Can't convert 'NoneType' object to str implicitly

This error pops up in console when running command: live_rsync_upload_full

Writing file /path/to/my/project.sublime-project with encoding UTF-8 (atomic)
Traceback (most recent call last):
  File "/Users/Einar/Library/Application Support/Sublime Text 3/Packages/SublimeLiveRsync/LiveRsync.py", line 60, in callback
    RsyncLogSingletone().log('Manual upload project:\n' + window.project_file_name())
TypeError: Can't convert 'NoneType' object to str implicitly

My Project file

{
    "folders":
    [
        {
            "follow_symlinks": true,
            "path": ".",
            "live_rsync": {
                "destination": "einar@devserver:~/public_html/devel/project",
                "ssh": true,
                "full_update_on_start" : true
            }
        }
    ]
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.