Skip to content
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

Merged
merged 6 commits into from
Apr 6, 2020
Merged

Add import test script #19

merged 6 commits into from
Apr 6, 2020

Conversation

spectranaut
Copy link
Contributor

Make sure your db is up to date and run yarn to get new packages! Then run via: yarn workspace server import-test

@spectranaut spectranaut requested a review from evmiguel March 31, 2020 16:36
process.exit();
}

const client = new Client();
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor Author

@spectranaut spectranaut Apr 3, 2020

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",

Copy link
Contributor

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

@spectranaut spectranaut merged commit 17956f4 into master Apr 6, 2020
@evmiguel evmiguel deleted the import-script branch April 6, 2020 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants