From fd0b7f0ef0690a435e2731614b4c3b951e793b7f Mon Sep 17 00:00:00 2001 From: Genki Sakanashi <> Date: Sun, 14 Jan 2024 20:24:31 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=E3=83=A9=E3=82=A4=E3=83=96=E3=83=A9?= =?UTF-8?q?=E3=83=AA=E3=82=A2=E3=83=83=E3=83=97=E3=83=87=E3=83=BC=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/package.json b/src/package.json index 3eabcde..b5392e7 100755 --- a/src/package.json +++ b/src/package.json @@ -12,7 +12,7 @@ "author": "Yosuke HASEGAWA", "license": "MIT", "dependencies": { - "libxmljs": "^0.18.7", - "sqlite3": "^3.1.8" + "libxmljs": "^1.0.11", + "sqlite3": "^5.1.7" } } From 14d8c833ea9ebfaa42d8c9d0285c6fce3a1817be Mon Sep 17 00:00:00 2001 From: Genki Sakanashi <> Date: Sun, 14 Jan 2024 20:24:40 +0900 Subject: [PATCH 2/3] =?UTF-8?q?docker=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 7 +++++++ docker-compose.yml | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c39f69a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM node:20 + +COPY ./src /app +WORKDIR /app +RUN npm install + +CMD node app.js \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..989ae16 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,7 @@ +version: "3.9" +services: + app: + build: + context: . + ports: + - 8080:8080 \ No newline at end of file From a0229b9f8eb1723af7d0770e9e851e4da04b1695 Mon Sep 17 00:00:00 2001 From: Genki Sakanashi <> Date: Sun, 14 Jan 2024 21:01:52 +0900 Subject: [PATCH 3/3] =?UTF-8?q?500=E3=82=A8=E3=83=A9=E3=83=BC=E3=82=92?= =?UTF-8?q?=E8=A7=A3=E6=B6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index 3d30938..8dc7c84 100755 --- a/src/app.js +++ b/src/app.js @@ -236,7 +236,7 @@ let handlers = [ let user = conn.session.get('user') let uid = conn.session.get('id') let htmlParams = {} - let params = qs.parse(conn.location.search.substring(1)) + let params = qs.parse(conn.location.search?.substring(1)) let q = params.q || '' let sql