From 7b2f8fa5e1deab47ae21260f8764eaf97567c50c Mon Sep 17 00:00:00 2001 From: Davidson Gomes Date: Sun, 9 Jun 2024 21:23:09 -0300 Subject: [PATCH] docker --- Docker/scripts/deploy_database.sh | 5 ++++- Dockerfile | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Docker/scripts/deploy_database.sh b/Docker/scripts/deploy_database.sh index 772e74870..e8a44425c 100755 --- a/Docker/scripts/deploy_database.sh +++ b/Docker/scripts/deploy_database.sh @@ -8,7 +8,10 @@ fi if [[ "$DATABASE_PROVIDER" == "postgresql" || "$DATABASE_PROVIDER" == "mysql" ]]; then export DATABASE_URL - ./node_modules/.bin/prisma migrate dev --name init --schema ./prisma/$DATABASE_PROVIDER-schema.prisma + # ./node_modules/.bin/prisma migrate dev --name init --schema ./prisma/$DATABASE_PROVIDER-schema.prisma + # ./node_modules/.bin/prisma migrate deploy --schema=prisma/$DATABASE_PROVIDER-schema.prisma + # ./node_modules/.bin/prisma generate --schema=prisma/$DATABASE_PROVIDER-schema.prisma + npx prisma migrate deploy --schema ./prisma/$DATABASE_PROVIDER-schema.prisma else echo "Error: Database provider $DATABASE_PROVIDER invalid." exit 1 diff --git a/Dockerfile b/Dockerfile index 399c9e8a7..320046f5c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ RUN npm i -g npm@latest FROM base AS builder -LABEL version="1.8.0" description="Api to control whatsapp features through http requests." +LABEL version="2.0.0" description="Api to control whatsapp features through http requests." LABEL maintainer="Davidson Gomes" git="https://github.com/DavidsonGomes" LABEL contact="contato@agenciadgcode.com"