diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..7de9e89 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,29 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Launch Chrome", + "request": "launch", + "type": "pwa-chrome", + "url": "http://localhost:8081", + "webRoot": "${workspaceFolder}/src" + }, + { + "name": "Listen for XDebug", + "type": "php", + "request": "launch", + "port": 9000, + "log": true, + "externalConsole": false, + "pathMappings": { + "/var/www/html/api": "${workspaceRoot}/src/api", + }, + "ignore": [ + "**/vendor/**/*.php" + ] + } + ] +} \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..cca2b66 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +version: "3" + +services: + taskboard: + image: "taskboard" + build: + context: . + ports: + - "8081:80" diff --git a/xdebug.ini b/xdebug.ini new file mode 100644 index 0000000..2137aeb --- /dev/null +++ b/xdebug.ini @@ -0,0 +1,11 @@ +[xdebug] +zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20180731/xdebug.so +xdebug.default_enable=1 +xdebug.remote_enable=1 +xdebug.remote_port=9000 +xdebug.remote_handler=dbgp +xdebug.remote_connect_back=0 +xdebug.remote_host=host.docker.internal +xdebug.idekey=VSCODE +xdebug.remote_autostart=1 +xdebug.remote_log=/usr/local/etc/php/xdebug.log