mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-16 20:22:54 -06:00
docker
This commit is contained in:
parent
11a52c3f43
commit
7b2f8fa5e1
@ -8,7 +8,10 @@ fi
|
|||||||
|
|
||||||
if [[ "$DATABASE_PROVIDER" == "postgresql" || "$DATABASE_PROVIDER" == "mysql" ]]; then
|
if [[ "$DATABASE_PROVIDER" == "postgresql" || "$DATABASE_PROVIDER" == "mysql" ]]; then
|
||||||
export DATABASE_URL
|
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
|
else
|
||||||
echo "Error: Database provider $DATABASE_PROVIDER invalid."
|
echo "Error: Database provider $DATABASE_PROVIDER invalid."
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -9,7 +9,7 @@ RUN npm i -g npm@latest
|
|||||||
|
|
||||||
FROM base AS builder
|
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 maintainer="Davidson Gomes" git="https://github.com/DavidsonGomes"
|
||||||
LABEL contact="contato@agenciadgcode.com"
|
LABEL contact="contato@agenciadgcode.com"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user