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

bcrypt doesn't work in seed file #525

Closed
liemdo opened this issue Aug 24, 2017 · 1 comment
Closed

bcrypt doesn't work in seed file #525

liemdo opened this issue Aug 24, 2017 · 1 comment

Comments

@liemdo
Copy link

liemdo commented Aug 24, 2017

When I run the seed, the script exits immediately when it hits the bcrypt.hash function

module.exports = {
  up: function (queryInterface, Sequelize) {
   console.log('before hashing');
   bcrypt.hashSync('password', 10);
   console.log('after hashing');

after hashing doesn't show up in the console and the script exits right before that.

Sequelize [Node: 8.2.1, CLI: 2.8.0, ORM: 4.3.0]

Using environment "development".
(node:1874) DeprecationWarning: Using the automatically created return value from client.query as an event emitter is deprecated and will be removed in pg@7.0. Please see the upgrade guide at https://node-postgres.com/guides/upgrading
== 20170803023739-init-seeder: migrating =======
before hasing
John:api $
@liemdo
Copy link
Author

liemdo commented Aug 25, 2017

It turns out bcrypt doesn't work well with my node alpine as mentioned here kelektiv/node.bcrypt.js#528

@liemdo liemdo closed this as completed Aug 25, 2017
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

No branches or pull requests

1 participant