wordpress-dev/container-setup.sh

13 lines
357 B
Bash
Executable File

#!/bin/sh
. /home/ray/Projects/wordpress-dev/load-config.sh
cd /home/ray/Projects/wordpress-dev
# ./dev/container-create.sh
_url="$_local_hostname.$_local_domain"
cat config dev/dev-env-setup.sh | ssh root@"$_url" 'cat >/tmp/deploy-script.sh'
ssh root@"$_url" '/bin/bash /tmp/deploy-script.sh'
ssh root@"$_url" '/bin/bash -c "rm /tmp/deploy-script.sh"'