This commit is contained in:
parent
f854d60108
commit
2e4b7a93ce
2 changed files with 53 additions and 0 deletions
16
deploy.sh
Executable file
16
deploy.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
INFO="\033[0;30m\033[47m"
|
||||
NC="\033[0m"
|
||||
|
||||
log() {
|
||||
echo -e "${INFO} INFO ${NC} $1"
|
||||
}
|
||||
|
||||
log "Pulling latest changes from Git repository..."
|
||||
git pull origin "$1"
|
||||
|
||||
log "Installing new composer dependencies and update autoloader..."
|
||||
composer install --no-interaction --prefer-dist --optimize-autoloader
|
Loading…
Add table
Add a link
Reference in a new issue