Compare commits

..

No commits in common. "3147521cd9fcf967a0e94da1ae88bb2c10506ff7" and "9ce9219a123eb393f488ca6356b610e2170faca0" have entirely different histories.

2 changed files with 3 additions and 6 deletions

View File

@ -4,7 +4,4 @@ TODO
## TODO
* Script to export database from production database
* Script to export wordpress directory from production
* Script to set up local container using exported database/wordpress installation from production
* Refactor duplicated code (e.g., creating containers, exporting data)

View File

@ -8,9 +8,9 @@ _scp_to_base="root@$_remote_host.$_domain:$_docker_dir"
echo "HOST=$_remote_host" > .env
echo "DOMAIN=$_domain" >> .env
echo "MYSQL_ROOT_PASSWD=$_mysql_root_passwd" >> .env
echo "MYSQL_DATABASE=wordpress" >> .env
echo "MYSQL_USER=wordpress" >> .env
echo "MYSQL_PASSWORD=wordpress" >> .env
echo "MYSQL_DATABASE=wordpress" >> .env
$_ssh_cmd "mkdir -p $_docker_dir/wordpress"
@ -40,9 +40,9 @@ $_ssh_cmd "cd $_docker_dir && docker-compose up -d --build"
# temporary solution
echo "waiting for mysql to initialise ..."
sleep 10
echo "still waiting for mysql ..."
echo "still waiting for mysql to initialise ..."
sleep 10
echo "and still waiting for mysql ..."
echo "waiting a little bit longer for mysql to initialise ..."
sleep 5
echo "Configuring WordPress ..."