diff --git a/client/.env b/client/.env new file mode 100644 index 0000000..e69de29 diff --git a/client/src/socket.js b/client/src/socket.js index 3e78b7e..fc0dbdc 100644 --- a/client/src/socket.js +++ b/client/src/socket.js @@ -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); diff --git a/server/prisma/schema.prisma b/server/prisma/schema.prisma index 8d0b010..9ea44b3 100644 --- a/server/prisma/schema.prisma +++ b/server/prisma/schema.prisma @@ -4,7 +4,7 @@ generator client { datasource db { provider = "mysql" - url = env("DATABASE_URL") + url = "mysql://root:123pass@database:3306/bootdb" } model Aluno { @@ -342,4 +342,4 @@ model Nota { updatedAt DateTime @updatedAt @@map("notas") -} \ No newline at end of file +} diff --git a/server/src/index.ts b/server/src/index.ts index 18d3af0..f329713 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -40,5 +40,5 @@ const io = new Server(httpServer, { appSocket(io); httpServer.listen(port, () => { - console.log(`Server is running on port ${port} 🚀`); -}); \ No newline at end of file + console.log(`Server is running on port ${port} 🚀\nDatabase URL: ${process.env.DATABASE_URL}`); +});