Giter VIP home page Giter VIP logo

git-status-monitor's Introduction

Git Status Monitor

Monitors a git repo for changes via git status & notifies you when changes show up via email. Useful for monitoring files for unexpected changes in production.

NOTE: This application should be called from a scheduling application such as cron. By itself it will only run once.

Installation

npm install -g git-status-monitor

Usage

git-status-monitor $folder_to_watch $files_to_watch $notify_email_to $notify_email_from $project_name
  • folder_to_watch: The directory the git repo you wish to monitor is in.
  • files_to_watch: A comma-delimited list of files you wish to be alerted to that have changed. The files are relative to the project root. To watch the entire repo, set this to $. To watch entire subdirectories, use the folder name with an asterisk (Example: www/*).
  • notify_email_to: A comma-delimited list of email addresses that are to receive the alert that the file has changed.
  • notify_email_from: The email address the alert should come from.
  • project_name: The name of the project. This is used in the alert message.

Example Usage (Basic)

git-status-monitor /var/www/wp_site .htaccess,wp-config.php [email protected],[email protected] [email protected] "My WP Site"

Example Usage (Entire Repo)

git-status-monitor /var/www/wp_site $ [email protected],[email protected] [email protected] "My WP Site"

Example Usage (One File & Sub Directory)

git-status-monitor /var/www/wp_site .htaccess,wp-content/* [email protected],[email protected] [email protected] "My WP Site"

Change Log

[0.2.4] - 2015-07-05

Fixed

  • Fixed an issue where on some systems the application could not locate the email templates folder.

[0.2.3] - 2015-06-30

Added

  • CHANGELOG.md

Changed

  • README.md (Added CHANGELOG & License)
  • Version number skipped a few to sync up repo version & NPM (my mistake).

[0.2.0] - 2015-06-30

Added

  • Now has the ability to watch the entire repo.
  • Now has the ability to watch sub directories.
  • Now notifies you if the repo is missing or deleted.

Fixed

  • The "git status" command needed an update to be correct.
  • Fixed an issue where the email sent did not include the files that triggered the alert at the top.
  • Now checks to see if nothing has changed.

[0.1.0] - 2015-06-29

Added

  • Initial Project Upload

License

Git Status Monitor is released under the MIT License.

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.