Open aanosh opened 6 years ago
Hi @tommy-gansta! It looks like you may have removed some required elements from the initial comment template, without which I can't verify that this post meets our contribution guidelines. To re-open this issue, please copy the template from here, paste it at the beginning of your initial comment, and follow the instructions in the text. Then post a new comment (e.g. "ok, fixed!") so that I know to go back and check.
Sorry to be a hassle, but following these instructions ensures that we can help you in the best way possible and keep the Sails project running smoothly.
*If you feel this message is in error, or you want to debate the merits of my existence (sniffle), please contact inquiries@sailsjs.com
Hi @tommy-gansta, I think your asking about adding a script right? You'll want to play around in your config/custom file. Then create a new script and create a sharedKey. Something like:
SharedKey: sails.config.custom.fooBarKey,
UserName: '…',
Password: '…',
linkExternalId: sails.config.custom.fooBarUnlinkedExternalId,
If this wasn't quit what you were looking for I hope it at least leads you to the right place!
Sails version: 0.11 Node version: 8.11 NPM version: 5.6 DB adapter name: sails-mongo DB adapter version: ^0.12.2 Operating system: windows 10
hi, I have created a shell script (exact as a sample in the doc). but when I do
sails run scripts/migrate-subscription-type.js
it crashes with the error: JwtStrategy requires a secret or key.I am using this module and store config with pm2. How am I able to add env vars for shell script? As I want to have all services and models out of the box. thank you!