Skip to content

Commit

Permalink
Fix command
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoVictor committed Jun 14, 2024
1 parent d005a97 commit 67adb2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migrations.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

0 comments on commit 67adb2c

Please sign in to comment.