From 0fa739598fa9b73dbffcc6081749280a0d6ab430 Mon Sep 17 00:00:00 2001 From: taoky Date: Fri, 9 Jan 2026 21:38:09 +0000 Subject: [PATCH 1/2] Add devcontainer Code is generated by codex. --- .devcontainer/devcontainer.json | 45 +++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000000..64a4e21ec0 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,45 @@ +{ + "name": "USTC LUG Website", + "image": "mcr.microsoft.com/devcontainers/base:bookworm", + "features": { + "ghcr.io/devcontainers/features/ruby:1": { + "version": "3.2", + "installBundler": true + }, + "ghcr.io/devcontainers/features/node:1": { + "version": "22" + }, + "ghcr.io/devcontainers/features/git:1": { + "version": "latest" + } + }, + "containerEnv": { + "BUNDLE_PATH": "vendor/bundle", + "JEKYLL_ENV": "development" + }, + "postCreateCommand": "bundle config set --local path 'vendor/bundle' && bundle install && npm install", + "forwardPorts": [4000, 35729], + "portsAttributes": { + "4000": { + "label": "Jekyll site", + "onAutoForward": "notify" + }, + "35729": { + "label": "LiveReload", + "onAutoForward": "silent" + } + }, + "customizations": { + "vscode": { + "settings": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "extensions": [ + "Shopify.ruby-lsp", + "esbenp.prettier-vscode", + "GitHub.vscode-github-actions" + ] + } + }, + "remoteUser": "vscode" +} From f2dc1ed33bb073a830d27a9c5f42f60c2ac164f6 Mon Sep 17 00:00:00 2001 From: taoky Date: Sat, 10 Jan 2026 05:45:14 +0800 Subject: [PATCH 2/2] Remove 35729 port --- .devcontainer/devcontainer.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 64a4e21ec0..308d1b1f54 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -18,15 +18,11 @@ "JEKYLL_ENV": "development" }, "postCreateCommand": "bundle config set --local path 'vendor/bundle' && bundle install && npm install", - "forwardPorts": [4000, 35729], + "forwardPorts": [4000], "portsAttributes": { "4000": { "label": "Jekyll site", "onAutoForward": "notify" - }, - "35729": { - "label": "LiveReload", - "onAutoForward": "silent" } }, "customizations": {