Node: pg module not found

Hey,
I tried doing a quick deploy to test the service out. So I used the example app Adonis Taskist
But the deployed app can’t install the “pg” module.

Here’s the site: https://flash-hukvumsgfb.cleaver.rocks/register

Whenever I try to register a new user, it hits the database and crashes since the postgres module is missing.

Here’s the log

Knex: run
$ npm install pg --save
Cannot find module 'pg'
Require stack:
 ... a bunch of stack traces that resolves down to trying to hit the db

Any ideas what might be causing this?

Hey @faroutchris,

That project is a little bit outdated now, I probably need to go in and make it current. If I recall correctly, adding a hook prior to db migration fixed that particular issue -

cd {{ releasePath }}
npm install pg --save
1 Like