Skip to content

A very simple Ruby script to watch for changed files in a directory then upload them via FTP, can be easily modified to upload via other methods.

Notifications You must be signed in to change notification settings

rjfranco/watch.rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

watch.rb

This script is meant to allow you to watch a directory, and have the files that you save / modify in there get actively uploaded to a corresponding directory on a remote FTP server. It can easily be adapted to SFTP / WebDav, but this fits my needs in my current development environment.

You need to have a file in your home path named .watch-server (sample is provided) with the following information for this to work:

ftp_user: myusername ftp_pass: mypassword ftp_server: ftp.myserver.com

If you have any questions, or comments, feel free to drop me a line. Ramiro Jr. Franco

About

A very simple Ruby script to watch for changed files in a directory then upload them via FTP, can be easily modified to upload via other methods.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages