update README

This commit is contained in:
Ray Elliott 2020-03-19 12:09:50 +00:00
parent d29e48a594
commit 6bd3bf2b50
2 changed files with 13 additions and 3 deletions

View File

@ -4,10 +4,9 @@ TODO
## TODO
* implement option to not have remote url include hostname (i.e., bare domain)
* convert scripts to use ssh pipes/bash here documents.
see [ssh pipes](https://stackoverflow.com/a/4412324), [Bash Here Document](https://stackoverflow.com/a/4412338)
* 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
* Refactor duplicated code (e.g., creating containers, exporting data)
* convert all scripts to use ssh pipes/bash here documents.
see [ssh pipes](https://stackoverflow.com/a/4412324), [Bash Here Document](https://stackoverflow.com/a/4412338)

11
incorporate-this.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
. ./env.sh
ssh "$remote_username@$remote_url" wget -O testdata.xml 'https://raw.githubusercontent.com/WPTRT/theme-unit-test/master/themeunittestdata.wordpress.xml'
ssh "$remote_username@$remote_url" wp "--path=$remote_path" \
import testdata.xml \
--authors=create
ssh "$remote_username@$remote_url" rm testdata.xml