build(port): change port from 3000 to 3012
This commit is contained in:
parent
0950ec772e
commit
927941abf9
5 changed files with 9 additions and 9 deletions
BIN
.qodo/history.sqlite
Normal file
BIN
.qodo/history.sqlite
Normal file
Binary file not shown.
|
@ -65,11 +65,11 @@ docker build -t calmerger-app .
|
|||
To start the container, use:
|
||||
|
||||
```bash
|
||||
docker run -d --name calmerger -p 3000:3000 calmerger-app
|
||||
docker run -d --name calmerger -p 3012:3012 calmerger-app
|
||||
|
||||
```
|
||||
|
||||
This maps the container's port `3000` to the host system's port `3000`. The application will be accessible at [http://localhost:3000](http://localhost:3000).
|
||||
This maps the container's port `3012` to the host system's port `3012`. The application will be accessible at [http://localhost:3012](http://localhost:3012).
|
||||
|
||||
### 3. Using Docker Compose (Optional)
|
||||
|
||||
|
@ -125,7 +125,7 @@ This generates a `coverage` report, showing how much of the codebase is tested.
|
|||
|
||||
## Usage
|
||||
|
||||
1. Open a web browser and navigate to `http://localhost:3000`.
|
||||
1. Open a web browser and navigate to `http://localhost:3012`.
|
||||
2. Click the **Add Calendar** button to add a new calendar.
|
||||
3. Enter the Link Group Name, calendar URL, prefix, and override options (if needed).
|
||||
4. Click the **Merge Calendars** button to generate the merged calendar.
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
version: '3.3'
|
||||
version: "3.3"
|
||||
|
||||
services:
|
||||
calmerge:
|
||||
build: .
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "3012:3012"
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- NODE_PORT=3000
|
||||
- NODE_PORT=3012
|
||||
volumes:
|
||||
- ./calendar:/app/calendar
|
||||
- ./logs:/app/logs
|
||||
restart: unless-stopped
|
||||
restart: unless-stopped
|
||||
|
|
|
@ -14,7 +14,7 @@ RUN npm install --omit=dev
|
|||
COPY . .
|
||||
|
||||
# Expose the port your application runs on (if applicable)
|
||||
EXPOSE 3000
|
||||
EXPOSE 3012
|
||||
|
||||
# Command to run the application
|
||||
CMD ["node", "src/app.js"]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import server from './server.js';
|
||||
|
||||
const port = process.env.NODE_PORT || 3000;
|
||||
const port = process.env.NODE_PORT || 3012;
|
||||
server.listen(port, () => {
|
||||
console.log(`Server started on port ${port}`);
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue