chore: update backend port to 5008 and frontend to 3008
This commit is contained in:
@@ -38,7 +38,7 @@ Make sure you have installed:
|
||||
|
||||
```env
|
||||
DATABASE_URL=postgresql://user:password@db:5432/mydb
|
||||
PORT=3000
|
||||
PORT=5008
|
||||
JWT_SECRET=your_secret_here
|
||||
|
||||
CORS_ALLOWED_ORIGINS=http://localhost:5173
|
||||
@@ -51,7 +51,7 @@ EMAIL_FROM=admin@example.com
|
||||
### Frontend (`frontend/.env`)
|
||||
|
||||
```env
|
||||
VITE_API_URL=http://localhost:5000/api
|
||||
VITE_API_URL=http://localhost:5008/api
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ PostgreSQL Database
|
||||
|
||||
**2. Environment Variables**
|
||||
DATABASE_URL=""
|
||||
PORT=3000
|
||||
PORT=5008
|
||||
JWT_SECRET=""
|
||||
CORS_ALLOWED_ORIGINS=http://localhost:3001 http://localhost:3003 http://localhost:5174 http://localhost:5173
|
||||
BYTESCALE_SECRET_API_KEY=""
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@ app.use("/api/email", emailConfigRoutes);
|
||||
app.use("/api/newsMedia", newsMediaRoutes);
|
||||
app.use("/api/import", importRoutes);
|
||||
|
||||
const PORT = process.env.PORT || 3000;
|
||||
const PORT = process.env.PORT || 5008;
|
||||
app.listen(PORT, () => {
|
||||
console.log(`Server running on port ${PORT}`);
|
||||
});
|
||||
|
||||
@@ -6,7 +6,7 @@ services:
|
||||
context: .
|
||||
dockerfile: docker/dev/Dockerfile.main
|
||||
ports:
|
||||
- "5000:3000"
|
||||
- "5008:5008"
|
||||
env_file:
|
||||
- ./backend/.env
|
||||
depends_on:
|
||||
@@ -19,7 +19,7 @@ services:
|
||||
context: .
|
||||
dockerfile: docker/dev/Dockerfile.frontend
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "3008:3000"
|
||||
env_file:
|
||||
- ./frontend/.env
|
||||
restart: unless-stopped
|
||||
|
||||
@@ -16,7 +16,7 @@ COPY ./backend .
|
||||
COPY ./docker/entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||
|
||||
EXPOSE 5000
|
||||
EXPOSE 5008
|
||||
|
||||
ENTRYPOINT [ "entrypoint.sh" ]
|
||||
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@ frontend/
|
||||
Node.js (v20+)
|
||||
|
||||
**2. Environment Variables**
|
||||
VITE_API_URL="http://localhost:3000/api"
|
||||
VITE_API_URL="http://localhost:5008/api"
|
||||
|
||||
**3. Install Dependencies**
|
||||
npm install
|
||||
|
||||
Reference in New Issue
Block a user