diff --git a/.gitignore b/.gitignore index 37b52cc..e2e3ed6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,22 @@ +# direnv /.envrc + +# Environment files (may contain secrets) +.env + +# Logs +*.log + +# OS metadata +.DS_Store +Thumbs.db + +# Editor/IDE +*.swp +*.swo +*~ +*.bak +.idea/ +.vscode/ +.project +.classpath diff --git a/README.md b/README.md index 75e0353..99435e2 100644 --- a/README.md +++ b/README.md @@ -75,5 +75,16 @@ Below are the instructions for the local relay. 3. `abra app deploy ` [abra]: https://git.autonomic.zone/autonomic-cooperative/abra + +## Migrate from a non-Co-op Cloud Wordpress install + +Make a .tar.gz backup of the site's wp-content dir and an .sql.gz backup of the database. + +1. `abra app wp.example.com restore app wp-content.tar.gz` +2. `abra app wp.example.com restore db wordpress.sql.gz` + +Lastly, if there's a domain name change, run a search and replace: +`abra app wp.example.com wp "search-replace https://old.example.com https://wp.example.com"` + [cc-traefik]: https://git.autonomic.zone/coop-cloud/traefik [cc-postfix-relay]: https://git.autonomic.zone/coop-cloud/traefik diff --git a/entrypoint.sh.tmpl b/entrypoint.sh.tmpl index 304efaf..6548983 100644 --- a/entrypoint.sh.tmpl +++ b/entrypoint.sh.tmpl @@ -54,7 +54,7 @@ if [ ! -f "$UPLOADS_HTACCESS" ]; then EOF fi -chown -R www-data:www-data /var/www/html/wp-content/uploads/ +chown -R --from=root:root www-data:www-data /var/www/html/wp-content/ if [ -n "$@" ]; then "$@"