fix: структура как в ipwhitelist — без Dockerfile, server.js, public/
This commit is contained in:
-11
@@ -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
@@ -2,9 +2,9 @@
|
||||
"name": "say",
|
||||
"version": "1.0.0",
|
||||
"description": "Say — голосовой ассистент Whisper + LLM",
|
||||
"main": "index.js",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
"start": "node index.js"
|
||||
"start": "node server.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"express": "^4.21.0",
|
||||
|
||||
|
Before Width: | Height: | Size: 1017 B After Width: | Height: | Size: 1017 B |
+2
-2
@@ -13,8 +13,8 @@ const errorHandler = require('./middleware/errorHandler');
|
||||
function createApp() {
|
||||
const app = express();
|
||||
|
||||
// --- Статика (CSS, лого, favicon) ---
|
||||
app.use('/static', express.static(path.join(__dirname, '..', 'static')));
|
||||
// --- Статика (CSS, лого, favicon) — как в ipwhitelist: public/ → / ---
|
||||
app.use(express.static(path.join(__dirname, '..', 'public')));
|
||||
|
||||
// --- Роуты ---
|
||||
app.use('/', pagesRouter);
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Say — Голосовой ассистент | Nubes</title>
|
||||
<link rel="icon" href="/static/favicon.png" type="image/png">
|
||||
<link rel="stylesheet" href="/static/style.css">
|
||||
<link rel="icon" href="/favicon.png" type="image/png">
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<header class="topbar">
|
||||
<div class="topbar-inner">
|
||||
<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>
|
||||
<span class="topbar-sep">|</span>
|
||||
<span class="topbar-title">Say — Голосовой ассистент</span>
|
||||
|
||||
Reference in New Issue
Block a user