Skip to content

bmiddha/deploy-with-git-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

deploy-with-git-hooks

This script sets up a bare git repository with the post-receive hook to auto checkout the project into the deployment/production directory.

Usage

Usage: gitdeploy.sh --git <example.git> --deploy <deploy_here> {--user | --host | --parent-directory | --branch}

  Required: 
      -g, --git               Bare Git Repository
      -d, --deploy            Deploy Location/Directory
  Optional: 
      -u, --user              SSH User (Default is current user)
      -a, --host              Host IP/Domain (Default is public IP)
      -p, --parent-directory  Specify Parent Directory (Default is currnet directory)
      -b, --branch            Specify Deploy Branch (Default is master)
      -h, --help              Displays Help Information

Install

sudo mv gitdeploy.sh /usr/bin/gitdeploy

Use anywhere with gitdeploy

Uninstall

sudo rm /usr/bin/gitdeploy

About

Set up a bare git repository with the post-receive hook to auto checkout the project into the deployment/production directory.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages