sct/lib/sct/commands/dev.rb in sct-1.0.5 vs sct/lib/sct/commands/dev.rb in sct-1.0.6
- old
+ new
@@ -36,10 +36,16 @@
service, service_spec = services.first
container = service_spec["container_name"]
command = service_spec["command"] || ""
- env = { "PUID" => `id -u`.chomp, "PGID" => `id -g`.chomp }
+ env = {
+ "PUID" => `id -u`.chomp,
+ "PGID" => `id -g`.chomp,
+ "HOST_MACHINE_IP" => (options.wsl_debugger ? `hostname -I | awk '{print $1}'` : `powershell.exe -c '(Test-Connection -ComputerName $env:computername -count 1).ipv4address.IPAddressToString' | dos2unix`).chomp,
+ "IDE_DEBUG_KEY" => "PHPSTORM",
+ "IDE_DEBUG_SERVER" => "docker",
+ }
if options.pull
return unless dc_dev "pull"
end