Ein für Shopware 6 vorbereitet Systemmanagment.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#!/bin/bash
### DO NOT EDIT THIS FILE
source "$(dirname "${BASH_SOURCE[0]}")/../../includes/includes.sh" app_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." &> /dev/null && pwd) source "$app_dir/etc/config.sh"
env=$(getArgument $1 "Usage: deploy.sh [live|stage]" "live stage")
echoMainTitle "Deploying $env system"
httpdocs_path="$(getConfig "$env" "httpdocs_path")" httpdocs_git_subpath="$(getConfig "$env" "httpdocs_git_subpath")" ssh_user="$(getConfig "$env" "ssh_user")" ssh_domain="$(getConfig "$env" "ssh_domain")" path="$httpdocs_path$httpdocs_git_subpath"
addSSHKey "$env"
ssh "$ssh_user"@"$ssh_domain" "cd $path && git stash" ssh "$ssh_user"@"$ssh_domain" "cd $path && git ls-files -m | rm" ssh "$ssh_user"@"$ssh_domain" "cd $path && git pull" ssh "$ssh_user"@"$ssh_domain" "$path/bin/console cache:clear" ssh "$ssh_user"@"$ssh_domain" "$path/bin/console theme:compile"
echo "... system deployed"
echo "Running postscript ..." postScript "$app_dir/bin/postscripts/functions/deploy.sh"
|