From 94650da46e791301d67f5f4f1c742d2c72065529 Mon Sep 17 00:00:00 2001 From: Stanislaw <62724833+BoberITman@users.noreply.github.com> Date: Sat, 2 Jul 2022 17:20:56 +0200 Subject: [PATCH] prisma fix --- .github/workflows/deploy.yaml | 1 + Dockerfile | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 29f5665..331e6a1 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -18,3 +18,4 @@ jobs: docker stop ${{ github.event.repository.name }} || true docker rm ${{ github.event.repository.name }} || true docker run -d -e "DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }}" -e "REDIS_TOKEN=${{ secrets.REDIS_TOKEN }}" -e "DATABASE_URL=${{ secrets.DATABASE_URL }}" --restart always --network BOT --name ${{ github.event.repository.name }} ${{ github.repository }} + docker exec bot npx prisma push diff --git a/Dockerfile b/Dockerfile index e1e6838..58d11e9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,5 +6,4 @@ RUN apt-get -y update RUN apt-get install -y build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev RUN npm install --build-from-source canvas RUN npm install -RUN npx prisma db push CMD ["node", "index.js"] \ No newline at end of file