From 08fca13069cbd186e54a705531823d03d9ff944e Mon Sep 17 00:00:00 2001 From: Brian Date: Mon, 26 Feb 2024 19:38:37 +0800 Subject: [PATCH] fix --- .gitignore | 1 + index.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 03e94d3..94dd5a1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules downloads +.vercel diff --git a/index.js b/index.js index 6214075..944a17f 100644 --- a/index.js +++ b/index.js @@ -5,7 +5,7 @@ const fs = require('fs'); const path = require('path'); const crypto = require('crypto'); const app = express(); -const port = 3000; +const port = 6000; app.use(express.static('public')); // 假设静态文件存放在 public 文件夹 diff --git a/package.json b/package.json index 42ab8f0..353cb09 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "run": "nodemon ./index.js" + "build": "npm install --os=linux --cpu=x64 sharp & npm install & node index.js" }, "keywords": [], "author": "",