-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add import test script #19
Conversation
process.exit(); | ||
} | ||
|
||
const client = new Client(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is the PostgreSQL connection being defined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bash exports! I guess I should export those vars in the package.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried adding this to the top level package.json, but it didn't work... do you know how to best handle this situation, @evmiguel ?
"db-import-tests:dev": "source config/dev.env; yarn workspace server import-tests",
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@spectranaut export $(cat config/dev.env); yarn workspace server import-tests
1000a13
to
185e5b4
Compare
Make sure your db is up to date and run
yarn
to get new packages! Then run via:yarn workspace server import-test