Skip to content

Commit 1101d45

Browse files
njt1982jekyllbot
authored andcommitted
Add instructions for using DotEnv (#92)
Merge pull request 92
1 parent bc332ee commit 1101d45

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

docs/authentication.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,8 @@ We use [Octokit](https://github.com/octokit/octokit.rb) to make the appropriate
3535
```bash
3636
$ OCTOKIT_ACCESS_TOKEN=123abc [bundle exec] jekyll serve
3737
```
38+
39+
## DotEnv
40+
41+
Rather than prefixing your shell commands with the environmental variables all the time, you can use the
42+
[Dotenv](https://github.com/bkeepers/dotenv) gem. Simply install it by adding it to your Gemfile, then create a `.env` file and populate it with your `JEKYLL_GITHUB_TOKEN` or `OCTOKIT_ACCESS_TOKEN`. Be sure you do not commit your `.env` file!

0 commit comments

Comments
 (0)