udpate debug settings and scripts
This commit is contained in:
@@ -3,6 +3,6 @@ FROM php:8.5.8-cli
|
||||
RUN pecl install xdebug && docker-php-ext-enable xdebug
|
||||
|
||||
WORKDIR /app
|
||||
EXPOSE 8000 9003
|
||||
EXPOSE 8000 9013
|
||||
|
||||
CMD ["php", "-S", "0.0.0.0:8000", "-t", "public", "public/index.php"]
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
xdebug.mode=develop,debug
|
||||
xdebug.start_with_request=yes
|
||||
xdebug.client_host=host.docker.internal
|
||||
xdebug.client_port=9003
|
||||
xdebug.client_port=9013
|
||||
xdebug.log_level=0
|
||||
xdebug.idekey=VSCODE
|
||||
Vendored
+8
-27
@@ -5,40 +5,17 @@
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Attach to Chrome",
|
||||
"port": 9222,
|
||||
"request": "attach",
|
||||
"type": "chrome",
|
||||
"webRoot": "${workspaceFolder}"
|
||||
},
|
||||
|
||||
{
|
||||
"name": "Listen for Xdebug (Docker)",
|
||||
"name": "API - Listen for Xdebug",
|
||||
"type": "php",
|
||||
"request": "launch",
|
||||
"port": 9003,
|
||||
"port": 9013,
|
||||
"pathMappings": {
|
||||
"/app": "${workspaceFolder}"
|
||||
},
|
||||
"log": true
|
||||
},
|
||||
{
|
||||
"name": "Launch currently open script",
|
||||
"type": "php",
|
||||
"request": "launch",
|
||||
"program": "${file}",
|
||||
"cwd": "${fileDirname}",
|
||||
"port": 0,
|
||||
"runtimeArgs": [
|
||||
"-dxdebug.start_with_request=yes"
|
||||
],
|
||||
"env": {
|
||||
"XDEBUG_MODE": "debug,develop",
|
||||
"XDEBUG_CONFIG": "client_port=${port}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Launch Built-in web server",
|
||||
"name": "API - Launch Built-in web server",
|
||||
"type": "php",
|
||||
"request": "launch",
|
||||
"runtimeArgs": [
|
||||
@@ -49,11 +26,15 @@
|
||||
],
|
||||
"program": "",
|
||||
"cwd": "${workspaceRoot}",
|
||||
"port": 9003,
|
||||
"port": 9013,
|
||||
"serverReadyAction": {
|
||||
"pattern": "Development Server \\(http://localhost:([0-9]+)\\) started",
|
||||
"uriFormat": "http://localhost:%s",
|
||||
"action": "openExternally"
|
||||
},
|
||||
"env": {
|
||||
"XDEBUG_MODE": "debug,develop",
|
||||
"XDEBUG_CONFIG": "client_port=${port}"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
+4
-2
@@ -1,9 +1,11 @@
|
||||
name: elixforms-ws
|
||||
|
||||
services:
|
||||
elixforms-webservices:
|
||||
elixforms-ws:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: .docker/php/Dockerfile
|
||||
container_name: elixforms-webservices
|
||||
container_name: elixforms-ws
|
||||
working_dir: /app
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
|
||||
@@ -3,3 +3,17 @@
|
||||
GET http://localhost:8000/api/dipendenti/cerca?term={{term}}
|
||||
Authorization: Basic elixforms_ws:password123
|
||||
X-API-Key: myApiAccessToken
|
||||
|
||||
###
|
||||
|
||||
@term=ID
|
||||
|
||||
GET http://localhost:8000/api/contratti/cerca?term={{term}}&cod_fis=MMMPPL74T17E463A
|
||||
Authorization: Basic elixforms_ws:password123
|
||||
X-API-Key: myApiAccessToken
|
||||
|
||||
###
|
||||
|
||||
@term=ID
|
||||
|
||||
GET http://localhost:8000/contratti/cerca?term={{term}}
|
||||
|
||||
@@ -88,6 +88,8 @@ Deploy Apache PHP
|
||||
throw "Compress-Archive non disponibile. Usa Windows PowerShell 5+ o PowerShell 7."
|
||||
}
|
||||
|
||||
$outputFile = Resolve-Path -LiteralPath $outputFile
|
||||
|
||||
Write-Host "[4/4] Archivio pronto"
|
||||
Write-Host "Percorso: '$outputFile'"
|
||||
Write-Host ""
|
||||
|
||||
@@ -28,7 +28,7 @@ if (-not (Get-Command composer -ErrorAction SilentlyContinue)) {
|
||||
Push-Location $root
|
||||
try {
|
||||
if ($useDockerComposer) {
|
||||
docker run --rm -p 8000:8000 -v "$($dockerRoot):/app" -w /app --name php-serve php:8.5.8-cli php -S 0.0.0.0:8000 -t public public/index.php
|
||||
docker run --rm -p 8000:8000 -v "$($dockerRoot):/app" -w /app --name elixforms-serve-ws php:8.5.8-cli php -S 0.0.0.0:8000 -t public public/index.php
|
||||
}
|
||||
else {
|
||||
php -S 0.0.0.0:8000 -t public public/index.php
|
||||
|
||||
Reference in New Issue
Block a user