Skip to content

Instantly share code, notes, and snippets.

@itime
itime / laravel_post_receive hook
Created March 12, 2020 06:52 — forked from vool/laravel_post_receive hook
Post receive hook for Laravel website deploy
#!/bin/bash
echo "********************"
echo "Post receive hook: Updating website"
echo "********************"
#set the git repo dir
GIT_REPO_DIR=~/git/<repo>.git
echo "The git repo dir is $GIT_REPO_DIR"
<?php
/**
* Interprets an INI file with heritage section
*
* @param string $filename Filename
* @return array
* @link https://gist.github.com/4217717
*
*/
function parse_ini_file_advanced($filename)