Skip to content

Commit

Permalink
Prodution alters
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Aug 22, 2024
1 parent 063ab72 commit c1815da
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Empty file added client/.env
Empty file.
2 changes: 1 addition & 1 deletion client/src/socket.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { io } from "socket.io-client";
import { reactive } from 'vue';

export const server_url = "http://localhost:3333";
export const server_url = "http://195.200.2.181:3334";
// export const server_url = "https://f02f7c405f4e1e6fce00528eb2719719.serveo.net/";

export const socket = io(server_url);
Expand Down
4 changes: 2 additions & 2 deletions server/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ generator client {

datasource db {
provider = "mysql"
url = env("DATABASE_URL")
url = "mysql://root:123pass@database:3306/bootdb"
}

model Aluno {
Expand Down Expand Up @@ -342,4 +342,4 @@ model Nota {
updatedAt DateTime @updatedAt
@@map("notas")
}
}
4 changes: 2 additions & 2 deletions server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ const io = new Server(httpServer, {
appSocket(io);

httpServer.listen(port, () => {
console.log(`Server is running on port ${port} 🚀`);
});
console.log(`Server is running on port ${port} 🚀\nDatabase URL: ${process.env.DATABASE_URL}`);
});

0 comments on commit c1815da

Please sign in to comment.