aboutsummaryrefslogtreecommitdiffstats
path: root/.devcontainer
diff options
context:
space:
mode:
authorRobin Windey <ro.windey@gmail.com>2023-04-06 14:56:54 +0000
committerGitHub <noreply@github.com>2023-04-06 14:57:35 +0000
commit849b7de6816f44213818f118b8110f02193bb283 (patch)
tree0d7098d3325f648a08c2025abb4c83596f71078c /.devcontainer
parent296c9beff6faee4b93160ffd093dfbbc7d55c180 (diff)
downloadnextcloud-server-849b7de6816f44213818f118b8110f02193bb283.tar.gz
nextcloud-server-849b7de6816f44213818f118b8110f02193bb283.zip
Move launch.json to .devcontainer and copy on start
Diffstat (limited to '.devcontainer')
-rw-r--r--.devcontainer/launch.json14
-rwxr-xr-x.devcontainer/setup.sh3
2 files changed, 17 insertions, 0 deletions
diff --git a/.devcontainer/launch.json b/.devcontainer/launch.json
new file mode 100644
index 00000000000..8103dd29461
--- /dev/null
+++ b/.devcontainer/launch.json
@@ -0,0 +1,14 @@
+{
+ // 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": "Listen for Xdebug",
+ "type": "php",
+ "request": "launch",
+ "port": 9003
+ }
+ ]
+}
diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh
index aac1f82f083..3485d4f7257 100755
--- a/.devcontainer/setup.sh
+++ b/.devcontainer/setup.sh
@@ -12,6 +12,9 @@ git submodule update --init
# Codespace config
cp .devcontainer/codespace.config.php config/codespace.config.php
+# VSCode debugger profile
+mkdir -p .vscode && cp .devcontainer/launch.json .vscode/launch.json
+
# Onetime installation setup
if [[ ! $(sudo -u ${APACHE_RUN_USER} php occ status) =~ installed:[[:space:]]*true ]]; then
echo "Running NC installation"