GithubHelp home page GithubHelp logo

filewatchupload's Introduction

FileWatchUpload

A utility java program (For Windows ATM) I built when I was getting frustrated having to manually upload my jar file to a remote test server over and over.

Note: At the moment, FileWatchUpload will only authenticate with a username and password.

Purpose

This program uploads a file of your choosing to a remote server whenever a change has occurred to that file.

Usage

  • Download the latest release and add place it in a folder.
  • In the same folder, create a file called filewatchupload and set the contents to the script found further below.
  • Create a file somewhere with the configuration structure you need. (See further down)
  • Register it filewatchupload --register pathToConfigFile.json
  • Now you can watch files and upload it using the configuration. filewatchupload --config id --file ./fileToWatch (the id can be found in the configuration JSON)
  • Any changes that happen to your file/directory will be uploaded to your server automatically when made.

filewatchupload.bat Script

@ECHO OFF
java -jar %~dp0/filewatchupload-1.0-SNAPSHOT.jar %*

Configuration Types

Simple SSH

{
  "id": "example-id",
  "type": "simple_ssh",
  "ip": "0.0.0.0",
  "port": 22,
  "username": "username",
  "password": "password",
  "output": [
    "array of remote directories to upload file to"
  ]
}

Future Plans

  • Implement SSH connections with keys
  • Implement connection that just moves files to another directory

filewatchupload's People

Contributors

willqizza avatar

Watchers

 avatar  avatar

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.