This file contains 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
{ | |
"estados": [ | |
{ | |
"sigla": "AC", | |
"nome": "Acre", | |
"cidades": [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", |
This file contains 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 | |
# To enable this hook, rename this file to "post-update". | |
project_folder="/var/www/example"; # Folder where the project live | |
project_name="Example Project"; # Project name | |
remote_upstream="stage"; # Remote server name | |
upstream_branch="develop"; # Remote upstream branch name | |
remote_branch="$remote_upstream/$upstream_branch"; # The upstream branch on remote server | |
apache_user=$(pstree -p | grep -E "apache|httpd" -m1 | rev | cut -d'(' -f1 | rev | tr -d ')' | xargs ps -o user h -p); # Apache user |
This file contains 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 | |
# To enable this hook, rename this file to "post-update". | |
project_folder="/var/www/example"; # Folder where the project live | |
project_name="Example"; # Project name | |
remote_upstream="origin"; # Remote server name | |
upstream_branch="develop"; # Remote upstream branch name | |
remote_branch="$remote_upstream/$upstream_branch"; # The upstream branch on remote server | |
apache_user=$(pstree -p | grep -E "apache|httpd" -m1 | rev | cut -d'(' -f1 | rev | tr -d ')' | xargs ps -o user h -p); # Apache user |