Skip to content

Load variables from the .env file.

License

Notifications You must be signed in to change notification settings

corenzan/dotenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Dotenv

Load variables from the .env file.

Script to load variables described in a .env file before executing given command.

Usage

Create a .env file.

PORT=3000

Then run your command prefixing it with ./dotenv. e.g.

$ ./dotenv rails server

You also can source the script to load the variables into a bash script.

source ./dotenv
echo $PORT

License

The MIT License © 2017 Arthur Corenzan

Releases

No releases published

Packages

No packages published

Languages