Skip to navigation
Replace all wordpress domains to the docker development test domains
place a sql file like zz_find_replace.sql into the folder init close to your docker-composer file the can look like UPDATE wp_options SET option_value = replace(option_value, 'http://foo.live', 'http://127.0.0.1:8103') WHERE option_name = 'home' OR option_name = 'siteurl'; UPDATE wp_posts SET guid = replace(guid, 'http://foo.live','http://127.0.0.1:8103'); UPDATE wp_posts SET post_content = replace(post_content, 'http://foo.live', 'http://127.0.0.1:8103'); UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://foo.live', 'http://127.0.0.1:8103'); Initializing a fresh instance When a container is started for the first time, a new database with the specified name will be created and initialized with the provided configuration variables. Furthermore, it will execute files with extensions .sh, .sql and .sql.gz that are found in /docker-entrypoint-initdb.d. Files will be executed in alphabetical order. You can easily populate your mariadb services by mounting a SQL dump into that directory and provide custom images with contributed data. SQL files will be imported by default to the database specified by the MYSQL_DATABASE variable.
Information Epoch 1511476214
Files are bags of bytes.
Copyleft ☠ 2017