From 67adb2c5d7665b9d0ddbfe3d6c5d825fd55dc7ad Mon Sep 17 00:00:00 2001 From: DiegoVictor Date: Fri, 14 Jun 2024 13:23:26 -0300 Subject: [PATCH] Fix command --- src/migrations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/migrations.js b/src/migrations.js index 4cc6d92..d896c2d 100644 --- a/src/migrations.js +++ b/src/migrations.js @@ -11,7 +11,7 @@ module.exports.handler = async () => { // const DATABASE_URL = `postgresql://${username}:${password}@${process.env.DB_HOST}/coderunner?schema=public`; const output = await command( - `DATABASE_URL=${process.env.DATABASE_URL} npx prisma migrate deploy` + `DATABASE_URL="${process.env.DATABASE_URL}" && ./node_modules/.bin/prisma migrate deploy` ); console.log(output); };