Skip to content

Commit

Permalink
Make sure config is different when xdebug param changes
Browse files Browse the repository at this point in the history
  • Loading branch information
noahtallen committed Dec 9, 2020
1 parent c4c3b3d commit dad241a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/env/lib/init-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ module.exports = async function initConfig( {
const config = await readConfig( configPath );
config.debug = debug;

// Adding these to the config allows the start config to understand that the
// config has changed when only the xdebug param has changed. This is needed
// so that Docker will rebuild the image whenever the xdebug flag changes.
config.xdebug = xdebug;

const dockerComposeConfig = buildDockerComposeConfig( config );

if ( config.debug ) {
Expand Down

0 comments on commit dad241a

Please sign in to comment.