Skip to content

Commit e041e8e

Browse files
committed
Set a standard pretty permalink structure for the local dev environment.
1 parent 6cd1f7d commit e041e8e

3 files changed

Lines changed: 1 addition & 6 deletions

File tree

.github/workflows/reusable-performance-test-v2.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,6 @@ jobs:
227227
- name: Deactivate WordPress Importer plugin
228228
run: npm run env:cli -- plugin deactivate wordpress-importer --path="/var/www/${LOCAL_DIR}"
229229

230-
- name: Update permalink structure
231-
run: npm run env:cli -- rewrite structure '/%year%/%monthnum%/%postname%/' --path="/var/www/${LOCAL_DIR}"
232-
233230
- name: Install additional languages
234231
run: |
235232
npm run env:cli -- language core install de_DE --path="/var/www/${LOCAL_DIR}"

.github/workflows/reusable-performance.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,6 @@ jobs:
203203
- name: Deactivate WordPress Importer plugin
204204
run: npm run env:cli -- plugin deactivate wordpress-importer --path="/var/www/${LOCAL_DIR}"
205205

206-
- name: Update permalink structure
207-
run: npm run env:cli -- rewrite structure '/%year%/%monthnum%/%postname%/' --path="/var/www/${LOCAL_DIR}"
208-
209206
- name: Install additional languages
210207
run: |
211208
npm run env:cli -- language core install de_DE --path="/var/www/${LOCAL_DIR}"

tools/local-env/scripts/install.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ wait_on( {
4646
wp_cli( 'db reset --yes --defaults' );
4747
const installCommand = process.env.LOCAL_MULTISITE === 'true' ? 'multisite-install' : 'install';
4848
wp_cli( `core ${ installCommand } --title="WordPress Develop" --admin_user=admin --admin_password=password --admin_email=test@example.com --skip-email --url=http://localhost:${process.env.LOCAL_PORT}` );
49+
wp_cli( `rewrite structure '/%year%/%monthnum%/%postname%/'` );
4950
} )
5051
.catch( err => {
5152
console.error( `Error: Unable to reset DB and install WordPress. Message: ${ err.message }` );

0 commit comments

Comments
 (0)