npm install sails-js-hook-dotenv
Start sails as you normally do (
sails lift) and you will be able to access your environment variables using
You can add configuration options for this hook in
config/dotenv.js by default.
.env.example file to create a new
npm run test in your terminal.