Skip to content

Instantly share code, notes, and snippets.

View Adrian1690's full-sized avatar

Adrian Peña Adrian1690

  • Lima , Perú
View GitHub Profile
---
name: "milkneko"
hostname: "milknekohost"
ip: "192.168.10.10"
memory: 4096
cpus: 2
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
@Adrian1690
Adrian1690 / post-receive
Created September 15, 2017 21:16 — forked from miguelmota/post-receive
Git post-receive hook example. Blog post: http://www.miguelmota.com/blog/deployment-with-git/
#!/bin/bash
SITE_NAME="Foo"
SITE_PATH="/var/www/foo.com"
BRANCH="production"
echo "**** $SITE_NAME [post-receive] hook received."
while read oldrev newrev ref
do
@Adrian1690
Adrian1690 / git-deployment.md
Created May 16, 2017 19:48 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your lokal GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like my Deepl.io to act upon a Web-Hook that's triggered that service.