Ticket #50042: 50042.2.diff
| File 50042.2.diff, 3.9 KB (added by , 6 years ago) |
|---|
-
.env
15 15 # x.y PHP version from 5.2 onwards. 16 16 LOCAL_PHP=latest 17 17 18 # The PHPUnit version to use when running tests. 19 # 20 # Valid options are 'latest', '{version}-fpm', or {phpunit-version}-php-{version}-fpm, where {version} is any x.y PHP 21 # version from 5.2 onwards and {phpunit-version} is any PHPUnit version starting from 4. 22 # 23 # Support for new PHPUnit versions is not backported to past releases, so some old WordPress branches require an older 24 # version to run tests. For full documentation on PHPUnit compatibility and WordPress versions, see 25 # https://make.wordpress.org/core/handbook/references/phpunit-compatibility-and-wordpress-versions/. 26 # 27 # This defaults to the value assigned to the value of LOCAL_PHP. 28 LOCAL_PHPUNIT=${LOCAL_PHP} 29 18 30 # Whether or not to enable XDebug. 19 31 LOCAL_PHP_XDEBUG=false 20 32 -
package-lock.json
9135 9135 } 9136 9136 }, 9137 9137 "dotenv": { 9138 "version": "8. 1.0",9139 "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8. 1.0.tgz",9140 "integrity": "sha512- GUE3gqcDCaMltj2++g6bRQ5rBJWtkWTmqmD0fo1RnnMuUqHNCt2oTPeDnS9n6fKYvlhn7AeBkb38lymBtWBQdA==",9138 "version": "8.2.0", 9139 "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz", 9140 "integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==", 9141 9141 "dev": true 9142 9142 }, 9143 9143 "dotenv-expand": { -
package.json
35 35 "check-node-version": "4.0.1", 36 36 "copy-webpack-plugin": "^5.1.1", 37 37 "cssnano": "4.1.10", 38 "dotenv": "8. 1.0",38 "dotenv": "8.2.0", 39 39 "dotenv-expand": "5.1.0", 40 40 "grunt": "~1.1.0", 41 41 "grunt-banner": "^0.6.0", -
tools/local-env/scripts/docker.js
1 const dotenv = require( 'dotenv' ); 1 const dotenv = require( 'dotenv' ); 2 const dotenvExpand = require( 'dotenv-expand' ); 2 3 const { execSync } = require( 'child_process' ); 3 dotenv.config(); 4 5 dotenvExpand( dotenv.config() ); 4 6 5 7 // Execute any docker-compose command passed to this script. 6 8 execSync( 'docker-compose ' + process.argv.slice( 2 ).join( ' ' ), { stdio: 'inherit' } ); -
tools/local-env/scripts/install.js
1 const dotenv = require( 'dotenv' ); 1 const dotenv = require( 'dotenv' ); 2 const dotenvExpand = require( 'dotenv-expand' ); 2 3 const wait_on = require( 'wait-on' ); 3 4 const { execSync } = require( 'child_process' ); 4 5 const { renameSync, readFileSync, writeFileSync } = require( 'fs' ); 5 6 6 dotenv .config();7 dotenvExpand( dotenv.config() ); 7 8 8 9 // Create wp-config.php. 9 10 wp_cli( 'config create --dbname=wordpress_develop --dbuser=root --dbpass=password --dbhost=mysql --path=/var/www/src --force' ); -
tools/local-env/scripts/start.js
1 const dotenv = require( 'dotenv' ); 1 const dotenv = require( 'dotenv' ); 2 const dotenvExpand = require( 'dotenv-expand' ); 2 3 const { execSync } = require( 'child_process' ); 3 4 4 dotenv .config();5 dotenvExpand( dotenv.config() ); 5 6 6 7 // Start the local-env containers. 7 8 execSync( 'docker-compose up -d wordpress-develop', { stdio: 'inherit' } );