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

README: Setting Env variable's example does not work #216

Open
sahilshekhawat opened this issue Feb 13, 2016 · 3 comments
Open

README: Setting Env variable's example does not work #216

sahilshekhawat opened this issue Feb 13, 2016 · 3 comments

Comments

@sahilshekhawat
Copy link

The example given here https://github.com/tjwebb/sails-permissions#3-set-environment-variables to add env variables to sails does not work.

This should be:

module.exports.permissions = {
  adminUsername: 'admin',
  adminEmail: '[email protected]',
  adminPassword: 'admin1234'
}

Should I raise a PR?

@RothAndrew
Copy link

I want this in config/local.js, but it doesn't seem to work there. The default admin user is created instead.

How can I put this in config/local.js and make Sails actually use it?

@sahilshekhawat
Copy link
Author

If I understand you correctly, you can put the sample code that I have given above in config/local.js and it will work.

@idoivri
Copy link

idoivri commented Aug 1, 2016

In the config/local.js you can add this:

  permissions: {
    adminUsername: 'admin',
    adminEmail: '[email protected]',
    adminPassword: '12345678' //should be longer than 8 chars
  }

this worked for me.

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

3 participants