Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Seed for multiple environments #4

Open
frostme opened this issue May 4, 2015 · 1 comment
Open

Seed for multiple environments #4

frostme opened this issue May 4, 2015 · 1 comment

Comments

@frostme
Copy link
Owner

frostme commented May 4, 2015

For test and dev, and production. Make it available to seed during all environments, and decipher between all.

@jdell64
Copy link

jdell64 commented Mar 20, 2017

I just tried to do this:

module.exports.seeds = {

  user: [
    {
      username: 'admin1',
      password: sails.config.adminPass
    }
  ]

};

in the seeds file, accessing a variable in local.js. This of course errored out, but if you could access the env vars, that would be a way, perhaps?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants