Code Monkey home page Code Monkey logo

guard-autoupload's Introduction

guard-autoupload

Autoupload plugin used for uploading all local changes to remote host. Uses either SFTP or FTP.

Installation

Add this line to your application's Gemfile:

gem 'guard-autoupload'

And then execute:

$ bundle

Or install it yourself as:

$ gem install guard-autoupload

Usage

Sample guardfile:

opts = {
    :protocol => :scp,        # Protocol used to connect to remote host.
                              # Possible values are :scp, :sftp and :ftp.
                              # Of these :scp is the preferred one for
                              # its stability.
    :host => "remote_host",
    # :port => 22,            # Uncomment this if you need to set port to
                              # something else than default.
    :user => "username",
    :password => "password",
    :remote => "remote_path",
    :verbose => false,        # if true you get all outputs
    :quiet => false,          # if true outputs only on exceptions.
    :remote_delete => true    # delete the remote file if local file is deleted (defaults to true)
}

guard :autoupload, opts do
    watch(/^((?!Guardfile$).)*$/)
    # Matches every other file but Guardfile. This way we don't
    # accidentally upload the credentials.
end

Contributing

  1. Fork it ( https://github.com/jyrkij/guard-autoupload/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Author

This guard plugin was written by Jyrki Lilja and is used at FocusFlow. The code is hevily based on vincenthu's guard-flopbox and bgarret's guard-ftpsync.

guard-autoupload's People

Contributors

bwanicur avatar finbowa avatar itayxd avatar jyrkij avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

guard-autoupload's Issues

Upload fails

I've been using this guard for some time now, and I recently updated it, and now it doesn't work...
I get the following error:

Exception on uploading functions.php

<Net::FTPPermError: 530 Login authentication failed

And then:

Exceeded 3 attempts to upload functions.php

That happens only after guard detects a change in a file and try to upload. I haven't change anything...
I double checked my login details, and when I entered wrong details I got error this right away (right after activating guard, it won't even watch the files):

ERROR - Invalid Guardfile, original error is:
[#] 530 Login authentication failed

Hope you can help me,
Itay

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.