diff --git a/Dockerfile b/Dockerfile index e50cec6..31f327b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ COPY server ./server COPY scripts ./scripts COPY prisma/schema.shared.prisma ./prisma/schema.shared.prisma -COPY package.json yarn.lock next.config.js next-env.d.ts tsconfig.json ./ +COPY package.json yarn.lock next.config.js next-env.d.ts zip-env.d.ts tsconfig.json ./ RUN yarn install diff --git a/scripts/deploy-db.js b/scripts/deploy-db.js index 33a78b4..d36a77d 100644 --- a/scripts/deploy-db.js +++ b/scripts/deploy-db.js @@ -36,6 +36,7 @@ module.exports = async (config) => { await prismaRun(config.database.url, ['generate', `--schema=prisma/schema.${config.database.type}.prisma`]); await prismaRun(config.database.url, ['db', 'seed', '--preview-feature', `--schema=prisma/schema.${config.database.type}.prisma`]); } catch (e) { + console.log(e); Logger.get('db').error('there was an error.. exiting..'); rimraf.sync(join(process.cwd(), 'prisma', 'migrations')); process.exit(1);