Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
btwlouis committed Dec 22, 2024
1 parent b7e57a3 commit 201e58c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ COPY . .
RUN npm run build

# Expose port
EXPOSE 3000
EXPOSE 4000

# Command to run the application
CMD ["node", "dist/index.js"]
CMD ["node", "dist/index.js"]
6 changes: 3 additions & 3 deletions backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ export default class Server {

console.log("frontend", process.env.FRONTEND_URL);

app.use(cors(corsOptions));
app.use(express.json());
app.use(express.urlencoded({ extended: true }));
//app.use(cors(corsOptions));
//app.use(express.json());
//app.use(express.urlencoded({ extended: true }));

this.startCronJob();
}
Expand Down
2 changes: 1 addition & 1 deletion backend/src/services/fivem.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export async function getServers() {
}

if (server.id === "g8lqro") {
console.log(server);
//console.log(server);
}

// parse server to Server model
Expand Down
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ services:
dockerfile: Dockerfile
container_name: backend
environment:
- FRONTEND_URL=https://tracker.louis.systems
- MYSQL_HOST=mariadb
- MYSQL_USER=fivem_tracker
- MYSQL_PASSWORD=fivem_tracker
- MYSQL_DATABASE=fivem_tracker
ports:
- "7777:4000"
- "4000:4000"
depends_on:
- mariadb
networks:
Expand All @@ -42,7 +43,7 @@ services:
- "6666:80"
networks:
- app_network

networks:
app_network:

Expand Down

0 comments on commit 201e58c

Please sign in to comment.