Changeset 59752
- Timestamp:
- 02/03/2025 01:35:25 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/local-env/scripts/install.js
r59658 r59752 13 13 14 14 // Create wp-config.php. 15 wp_cli( 'config create --dbname=wordpress_develop --dbuser=root --dbpass=password --dbhost=mysql -- path=/var/www/src --force' );15 wp_cli( 'config create --dbname=wordpress_develop --dbuser=root --dbpass=password --dbhost=mysql --force' ); 16 16 17 17 // Add the debug settings to wp-config.php. … … 25 25 26 26 // Move wp-config.php to the base directory, so it doesn't get mixed up in the src or build directories. 27 renameSync( 'src/wp-config.php', 'wp-config.php' );27 renameSync( `${process.env.LOCAL_DIR}/wp-config.php`, 'wp-config.php' ); 28 28 29 29 install_wp_importer(); … … 56 56 const composeFiles = local_env_utils.get_compose_files(); 57 57 58 execSync( `docker compose ${composeFiles} run --quiet-pull --rm cli ${cmd} `, { stdio: 'inherit' } );58 execSync( `docker compose ${composeFiles} run --quiet-pull --rm cli ${cmd} --path=/var/www/${process.env.LOCAL_DIR}`, { stdio: 'inherit' } ); 59 59 } 60 60
Note: See TracChangeset
for help on using the changeset viewer.