This repository has been archived by the owner on Jun 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c66f5c8
commit 9421c5b
Showing
3 changed files
with
19 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
#!/bin/sh | ||
|
||
echo "Bem-vindo ao EduPrime Hub!" | ||
echo "Aguardando a inicialização do banco de dados..." | ||
sleep 20 | ||
|
||
# Verifica se o banco de dados está acessível antes de prosseguir | ||
node check-db-connection.js | ||
|
||
# Gera o cliente Prisma | ||
npx prisma generate | ||
|
||
# Aplica as migrações do Prisma | ||
node prisma-init.js | ||
|
||
echo "As APIs estão disponíveis na porta 3000." | ||
node check-db-connection.js && pnpm run start:prod | ||
|
||
# Inicia o servidor | ||
npm run start:prod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters