[dyad] wrote 3 file(s)

This commit is contained in:
Michael committed 2025-11-06 13:48:49 +01:00
1 parent b8a19a25bf
commit 3f703fbf11
3 files changed
+21 -21

No files matched your search

+3 -3
View File
@@ -5,14 +5,14 @@ services:
build: . build: .
container_name: notes-todo-app container_name: notes-todo-app
ports: ports:
- "3000:3000" - "2222:2222"
volumes: volumes:
- ./data:/app/data - ./data:/app/data
- ./public/uploads:/app/public/uploads - ./public/uploads:/app/public/uploads
environment: environment:
- NODE_ENV=production - NODE_ENV=production
- JWT_SECRET=changeme_in_production - JWT_SECRET=changeme_in_production
- PORT=3000 - PORT=2222
restart: unless-stopped restart: unless-stopped
networks: networks:
- nginx_default - nginx_default
@@ -23,7 +23,7 @@ networks:
# Nginx configuration example: # Nginx configuration example:
# location /notes/ { # location /notes/ {
# proxy_pass http://notes-todo-app:3000/; # proxy_pass http://notes-todo-app:2222/;
# proxy_http_version 1.1; # proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade; # proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection 'upgrade'; # proxy_set_header Connection 'upgrade';
+1 -1
View File
@@ -33,7 +33,7 @@ app.use((err, req, res, next) => {
}); });
// Start server // Start server
const PORT = process.env.PORT || 3000; const PORT = process.env.PORT || 2222;
app.listen(PORT, () => { app.listen(PORT, () => {
logger.info(`Server running on port ${PORT}`); logger.info(`Server running on port ${PORT}`);
}); });
+17 -17
View File
@@ -1,17 +1,17 @@
import { defineConfig } from "vite"; import { defineConfig } from "vite";
import dyadComponentTagger from "@dyad-sh/react-vite-component-tagger"; import dyadComponentTagger from "@dyad-sh/react-vite-component-tagger";
import react from "@vitejs/plugin-react-swc"; import react from "@vitejs/plugin-react-swc";
import path from "path"; import path from "path";
export default defineConfig(() => ({ export default defineConfig(() => ({
server: { server: {
host: "::", host: "::",
port: 8080, port: 2222,
}, },
plugins: [dyadComponentTagger(), react()], plugins: [dyadComponentTagger(), react()],
resolve: { resolve: {
alias: { alias: {
"@": path.resolve(__dirname, "./src"), "@": path.resolve(__dirname, "./src"),
}, },
}, },
})); }));