site_hook

Installation

  • gem install site_hook


  1. git clone https://github.com/IotaSpencer/site_hook

  2. cd site_hook

  3. Install

    1. Bundler
      • bundle install --system
    2. Gem
      • gem build site_hook.gemspec then
      • gem install site_hook-x.x.x.gem to install to system (as root)
      • sudo gem install site_hook-x.x.x.gem to install to system when a sudoer
      • gem install site_hook-x.x.x.gem --user-install to install as current user (to user GEM_HOME)

Setup

Create Needed Files & Directories

  • Create a directory named .jph in the your home directory.
  • Create a file named .jph-rc in the home directory of the user that’s going to be running the site_hook You can either do this using

    • site_hook config gen > ~/.jph-rc
      • To redirect the output to a file.

    • site_hook config gen -f
      • To force a file to be created by the script.

Usage

Notes on Usage

  • Clone your site to where you want it built from
  • IMPORTANT: Run bundle install --path vendor/bundle otherwise you will get dependency errors

Start

If a configuration file has been created or generated(then edited correctly)… using ‘start’ should initiate the webhook and have it start

  • site_hook start
  • bundle exec site_hook start

Depending on how you installed site_hook.