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 | |
# | |
# Commands Definition | |
# | |
ECHO="echo -e" | |
TPUT_BOLD="tput bold" | |
TPUT_RED="tput setaf 1" | |
TPUT_OFF="tput sgr0" |
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
<?php | |
//Deploy the current version from master branch of the project | |
$document_root = "<repository_root_folder>"; | |
echo "Clean untracked files on server:"; | |
$output = shell_exec("git clean -d --force $document_root 2>&1"); | |
echo "<pre>$output</pre>"; | |
echo "Revert modified files (not staged) on server..."; | |
$output = shell_exec("git checkout -- $document_root 2>&1"); |
OlderNewer