Hello!
I am building an JSON API using Express + Node.js that is backed by Postgres. I’d like to run a migrate command, followed by a seed command (though I don’t really need to run seed on every deploy). If I try to chain commands with &&, I notice the deploy fails. Is there a better way to do this?
[deploy]
release_command = "npx prisma migrate dev && node dist/seeds/seeds.js"
However, if I run the seed command alone, it suceeds:
[deploy]
release_command = "node dist/seeds/seeds.js"
Separately, I’d be curious to know if there’s a way to run this from the command line. When I tried to ssh into the console and called node
I got back the following error: /bin/sh: 1: node: not found
.