fix: структура как в ipwhitelist — без Dockerfile, server.js, public/

This commit is contained in:
2026-05-31 18:59:43 +03:00
parent ab764f9364
commit a7bf18939c
8 changed files with 7 additions and 18 deletions
-11
View File
@@ -1,11 +0,0 @@
FROM node:23-alpine
WORKDIR /app
COPY package.json .
RUN npm install --production
COPY . .
EXPOSE 3000
CMD ["node", "index.js"]
+2 -2
View File
@@ -2,9 +2,9 @@
"name": "say", "name": "say",
"version": "1.0.0", "version": "1.0.0",
"description": "Say — голосовой ассистент Whisper + LLM", "description": "Say — голосовой ассистент Whisper + LLM",
"main": "index.js", "main": "server.js",
"scripts": { "scripts": {
"start": "node index.js" "start": "node server.js"
}, },
"dependencies": { "dependencies": {
"express": "^4.21.0", "express": "^4.21.0",

Before

Width:  |  Height:  |  Size: 1017 B

After

Width:  |  Height:  |  Size: 1017 B

View File
+2 -2
View File
@@ -13,8 +13,8 @@ const errorHandler = require('./middleware/errorHandler');
function createApp() { function createApp() {
const app = express(); const app = express();
// --- Статика (CSS, лого, favicon) --- // --- Статика (CSS, лого, favicon) — как в ipwhitelist: public/ → / ---
app.use('/static', express.static(path.join(__dirname, '..', 'static'))); app.use(express.static(path.join(__dirname, '..', 'public')));
// --- Роуты --- // --- Роуты ---
app.use('/', pagesRouter); app.use('/', pagesRouter);
+3 -3
View File
@@ -4,8 +4,8 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Say — Голосовой ассистент | Nubes</title> <title>Say — Голосовой ассистент | Nubes</title>
<link rel="icon" href="/static/favicon.png" type="image/png"> <link rel="icon" href="/favicon.png" type="image/png">
<link rel="stylesheet" href="/static/style.css"> <link rel="stylesheet" href="/style.css">
</head> </head>
<body> <body>
@@ -15,7 +15,7 @@
<header class="topbar"> <header class="topbar">
<div class="topbar-inner"> <div class="topbar-inner">
<a href="/" class="topbar-logo" title="Say — Главная"> <a href="/" class="topbar-logo" title="Say — Главная">
<img src="/static/nubes-logo.svg" alt="Nubes" width="130" height="28"> <img src="/nubes-logo.svg" alt="Nubes" width="130" height="28">
</a> </a>
<span class="topbar-sep">|</span> <span class="topbar-sep">|</span>
<span class="topbar-title">Say — Голосовой ассистент</span> <span class="topbar-title">Say — Голосовой ассистент</span>