Skip to content

Commit 2ae896b

Browse files
committed
Add wp rewrite
Signed-off-by: Riddhesh Sanghvi <riddhesh237@gmail.com>
1 parent 17a79b6 commit 2ae896b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/WordPress.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,6 +1200,8 @@ private function install_wp() {
12001200
throw new \Exception( 'WordPress install failed. Please check logs.' );
12011201
}
12021202

1203+
\EE_DOCKER::docker_compose_exec( 'wp rewrite structure "/%year%/%monthnum%/%day%/%postname%/" --hard', 'php', 'bash', 'www-data' );
1204+
12031205
$env_type = \EE::get_runner()->config['env'];
12041206
$env_type = in_array( $env_type, [ 'production', 'staging', 'development', 'local' ] ) ? $env_type : '';
12051207
if ( ! empty( $env_type ) ) {

0 commit comments

Comments
 (0)