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
|
RUN pecl install xdebug && docker-php-ext-enable xdebug
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 8000 9003
|
EXPOSE 8000 9013
|
||||||
|
|
||||||
CMD ["php", "-S", "0.0.0.0:8000", "-t", "public", "public/index.php"]
|
CMD ["php", "-S", "0.0.0.0:8000", "-t", "public", "public/index.php"]
|
||||||
|
|||||||
@@ -4,6 +4,6 @@
|
|||||||
xdebug.mode=develop,debug
|
xdebug.mode=develop,debug
|
||||||
xdebug.start_with_request=yes
|
xdebug.start_with_request=yes
|
||||||
xdebug.client_host=host.docker.internal
|
xdebug.client_host=host.docker.internal
|
||||||
xdebug.client_port=9003
|
xdebug.client_port=9013
|
||||||
xdebug.log_level=0
|
xdebug.log_level=0
|
||||||
xdebug.idekey=VSCODE
|
xdebug.idekey=VSCODE
|
||||||
Vendored
+8
-27
@@ -5,40 +5,17 @@
|
|||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "Attach to Chrome",
|
"name": "API - Listen for Xdebug",
|
||||||
"port": 9222,
|
|
||||||
"request": "attach",
|
|
||||||
"type": "chrome",
|
|
||||||
"webRoot": "${workspaceFolder}"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"name": "Listen for Xdebug (Docker)",
|
|
||||||
"type": "php",
|
"type": "php",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"port": 9003,
|
"port": 9013,
|
||||||
"pathMappings": {
|
"pathMappings": {
|
||||||
"/app": "${workspaceFolder}"
|
"/app": "${workspaceFolder}"
|
||||||
},
|
},
|
||||||
"log": true
|
"log": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Launch currently open script",
|
"name": "API - Launch Built-in web server",
|
||||||
"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",
|
|
||||||
"type": "php",
|
"type": "php",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"runtimeArgs": [
|
"runtimeArgs": [
|
||||||
@@ -49,11 +26,15 @@
|
|||||||
],
|
],
|
||||||
"program": "",
|
"program": "",
|
||||||
"cwd": "${workspaceRoot}",
|
"cwd": "${workspaceRoot}",
|
||||||
"port": 9003,
|
"port": 9013,
|
||||||
"serverReadyAction": {
|
"serverReadyAction": {
|
||||||
"pattern": "Development Server \\(http://localhost:([0-9]+)\\) started",
|
"pattern": "Development Server \\(http://localhost:([0-9]+)\\) started",
|
||||||
"uriFormat": "http://localhost:%s",
|
"uriFormat": "http://localhost:%s",
|
||||||
"action": "openExternally"
|
"action": "openExternally"
|
||||||
|
},
|
||||||
|
"env": {
|
||||||
|
"XDEBUG_MODE": "debug,develop",
|
||||||
|
"XDEBUG_CONFIG": "client_port=${port}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
+4
-2
@@ -1,9 +1,11 @@
|
|||||||
|
name: elixforms-ws
|
||||||
|
|
||||||
services:
|
services:
|
||||||
elixforms-webservices:
|
elixforms-ws:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: .docker/php/Dockerfile
|
dockerfile: .docker/php/Dockerfile
|
||||||
container_name: elixforms-webservices
|
container_name: elixforms-ws
|
||||||
working_dir: /app
|
working_dir: /app
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "host.docker.internal:host-gateway"
|
- "host.docker.internal:host-gateway"
|
||||||
|
|||||||
@@ -3,3 +3,17 @@
|
|||||||
GET http://localhost:8000/api/dipendenti/cerca?term={{term}}
|
GET http://localhost:8000/api/dipendenti/cerca?term={{term}}
|
||||||
Authorization: Basic elixforms_ws:password123
|
Authorization: Basic elixforms_ws:password123
|
||||||
X-API-Key: myApiAccessToken
|
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."
|
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 "[4/4] Archivio pronto"
|
||||||
Write-Host "Percorso: '$outputFile'"
|
Write-Host "Percorso: '$outputFile'"
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ if (-not (Get-Command composer -ErrorAction SilentlyContinue)) {
|
|||||||
Push-Location $root
|
Push-Location $root
|
||||||
try {
|
try {
|
||||||
if ($useDockerComposer) {
|
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 {
|
else {
|
||||||
php -S 0.0.0.0:8000 -t public public/index.php
|
php -S 0.0.0.0:8000 -t public public/index.php
|
||||||
|
|||||||
Reference in New Issue
Block a user