Skip to content

Instantly share code, notes, and snippets.

View rajeshisnepali's full-sized avatar
:octocat:
Focused

Rajesh Chaudhary rajeshisnepali

:octocat:
Focused
View GitHub Profile
@rajeshisnepali
rajeshisnepali / project-create.sh
Last active February 28, 2019 05:04 — forked from francoisromain/project-create.sh
A bash script to create a Git post-receive hook to deploy after a Git push
#!/bin/bash
# Call this file with `bash ./project-create.sh project-name [service-name]`
# - project-name is mandatory
# - service-name is optional
# This will creates 4 directories and a git `post-receive` hook.
# The 4 directories are:
# - $GIT: a git repo
# - $TMP: a temporary directory for deployment