Skip to content

Commit

Permalink
Merge pull request #523 from yeoji/sampleenv
Browse files Browse the repository at this point in the history
Added sample env file #520
  • Loading branch information
Matt Bernier authored Oct 29, 2017
2 parents 0d860a8 + a323311 commit d04707c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export SENDGRID_API_KEY=''
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ test/coverage/*
dist/
composer.lock
vendor
.env*
.env
sendgrid.env
composer.phar
.editorconfig
test.php
.idea/
.idea/
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,14 @@ We appreciate your continued support, thank you!

Update the development environment with your [SENDGRID_API_KEY](https://app.sendgrid.com/settings/api_keys), for example:

1. Copy the sample env file to a new file named `.env`
```bash
echo "export SENDGRID_API_KEY='YOUR_API_KEY'" > sendgrid.env
echo "sendgrid.env" >> .gitignore
source ./sendgrid.env
cp .env.sample .env
```
2. Edit the `.env` file to include your `SENDGRID_API_KEY`
3. Source the `.env` file
```bash
source ./.env
```

## Install Package
Expand Down

0 comments on commit d04707c

Please sign in to comment.