Compare commits

...

2 Commits

Author SHA1 Message Date
Ray Elliott 3147521cd9 update 2020-03-09 20:55:03 +00:00
Ray Elliott 1516a54f26 update 2020-03-09 20:52:10 +00:00
2 changed files with 6 additions and 3 deletions

View File

@ -4,4 +4,7 @@ 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 to initialise ..."
echo "still waiting for mysql ..."
sleep 10
echo "waiting a little bit longer for mysql to initialise ..."
echo "and still waiting for mysql ..."
sleep 5
echo "Configuring WordPress ..."