Skip to content

Commit

Permalink
style(src) format comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lucatume committed Sep 6, 2023
1 parent e8fec01 commit 0dd835f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions slic-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ services:
timeout: 3s
retries: 30
extra_hosts:
# set as host=host.docker.internal in src/slic.php on Linux for xdebug
# Set as host=host.docker.internal in src/slic.php on Linux for XDebug.
- "${host:-host}:host-gateway"

chrome:
Expand Down Expand Up @@ -195,5 +195,5 @@ services:
# Scripts volume
- ${SLIC_SCRIPTS}:/slic-scripts
extra_hosts:
# set as host=host.docker.internal in src/slic.php on Linux for xdebug
# Set as host=host.docker.internal in src/slic.php on Linux for XDebug.
- "${host:-host}:host-gateway"
8 changes: 5 additions & 3 deletions src/slic.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,11 @@ function setup_slic_env( $root_dir, $reset = false ) {
load_env_file( $root_dir . '/.env.slic.run' );
}

// Set the host env var to make xdebug work on Linux with host.docker.internal.
// This will already be set on Mac/Windows, and overriding it would break things.
// See extra_hosts: in slick-stack.yml.
/*
* Set the host env var to make xdebug work on Linux with host.docker.internal.
* This will already be set on Mac/Windows, and overriding it would break things.
* See extra_hosts: in slick-stack.yml.
*/
if ( PHP_OS === 'Linux' ) {
putenv( sprintf( 'host=%s', getenv( 'XDH' ) ?: 'host.docker.internal' ) );
}
Expand Down

0 comments on commit 0dd835f

Please sign in to comment.