mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-11 17:29:37 +02:00
[dyad] wrote 3 file(s)
This commit is contained in:
1 parent
b8a19a25bf
commit
3f703fbf11
3 files changed
+21
-21
No files matched your search
+3
-3
@@ -5,14 +5,14 @@ services:
|
||||
build: .
|
||||
container_name: notes-todo-app
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "2222:2222"
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
- ./public/uploads:/app/public/uploads
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- JWT_SECRET=changeme_in_production
|
||||
- PORT=3000
|
||||
- PORT=2222
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- nginx_default
|
||||
@@ -23,7 +23,7 @@ networks:
|
||||
|
||||
# Nginx configuration example:
|
||||
# location /notes/ {
|
||||
# proxy_pass http://notes-todo-app:3000/;
|
||||
# proxy_pass http://notes-todo-app:2222/;
|
||||
# proxy_http_version 1.1;
|
||||
# proxy_set_header Upgrade $http_upgrade;
|
||||
# proxy_set_header Connection 'upgrade';
|
||||
|
||||
@@ -33,7 +33,7 @@ app.use((err, req, res, next) => {
|
||||
});
|
||||
|
||||
// Start server
|
||||
const PORT = process.env.PORT || 3000;
|
||||
const PORT = process.env.PORT || 2222;
|
||||
app.listen(PORT, () => {
|
||||
logger.info(`Server running on port ${PORT}`);
|
||||
});
|
||||
+17
-17
@@ -1,17 +1,17 @@
|
||||
import { defineConfig } from "vite";
|
||||
import dyadComponentTagger from "@dyad-sh/react-vite-component-tagger";
|
||||
import react from "@vitejs/plugin-react-swc";
|
||||
import path from "path";
|
||||
|
||||
export default defineConfig(() => ({
|
||||
server: {
|
||||
host: "::",
|
||||
port: 8080,
|
||||
},
|
||||
plugins: [dyadComponentTagger(), react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
},
|
||||
},
|
||||
}));
|
||||
import { defineConfig } from "vite";
|
||||
import dyadComponentTagger from "@dyad-sh/react-vite-component-tagger";
|
||||
import react from "@vitejs/plugin-react-swc";
|
||||
import path from "path";
|
||||
|
||||
export default defineConfig(() => ({
|
||||
server: {
|
||||
host: "::",
|
||||
port: 2222,
|
||||
},
|
||||
plugins: [dyadComponentTagger(), react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
},
|
||||
},
|
||||
}));
|
||||
Reference in new issue
Block a user