This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Create a slug to use in a url | |
* Dependency: php_intl (extension) | |
* | |
* @author ClebioFelix | |
* @param string $text Text to transform | |
* @param bool $tolower Convert or not to lowercase | |
* @return string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GIT_WORK_TREE=/var/www/sub_temp git checkout -f | |
changedfiles=( `git diff-tree --no-commit-id --name-only HEAD^ HEAD` ) | |
cd /var/www/sub_temp/ | |
# check if composer has been updated, if so install | |
# Check if the composer.lock file is present |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |