We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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?
The text was updated successfully, but these errors were encountered:
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?
Sorry, something went wrong.
If I understand you correctly, you can put the sample code that I have given above in config/local.js and it will work.
config/local.js
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.
No branches or pull requests
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:
Should I raise a PR?
The text was updated successfully, but these errors were encountered: