Skip to content

Taiters/sails-hook-dotenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sails-hook-dotenv

Build Status npm version

Sails JS hook to load environment variables from a .env file using dotenv

Installation

npm install sails-hook-dotenv

Usage

Start sails as you normally do (sails lift) and you will be able to access your environment variables using process.env.your-variable-name

Configuration

You can add configuration options for this hook in config/dotenv.js by default. Currently, the only option is a boolean: active. Setting this to false will disable this hook.

About

Sails.js hook for loading .env files

Resources

License

Stars

Watchers

Forks

Packages

No packages published