diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 331e6a1..29f5665 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -18,4 +18,3 @@ 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 58d11e9..642a6b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,4 +6,5 @@ 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 -CMD ["node", "index.js"] \ No newline at end of file +CMD ["npx", "prisma", "db", "push"] +CMD ["node", "index.js"]