Skip to content

Commit

Permalink
Merge pull request #82 from FireflyArtsCollective/fix-dotenv
Browse files Browse the repository at this point in the history
Fix dotenv
  • Loading branch information
ywwg authored Feb 10, 2018
2 parents a074c5d + 4c41458 commit e132c3f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SECRET_KEY_BASE="big long secret that you can create using 'rake secret'"
SMTP_USER_NAME="username"
SMTP_PASSWORD="this_is_not_the_password"
SMTP_ADDRESS="somedomain.com"
SMTP_DOMAIN="somedomain.com"
SMTP_PORT="465"
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ gem 'pdf-inspector', require: 'pdf/inspector'
gem 'log4r'

# Load ENV from a `.env` file`
gem 'dotenv'
gem 'dotenv-rails'

# Automatically create text emails from HTML ones
gem 'premailer-rails'
Expand Down
6 changes: 5 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ GEM
addressable
diff-lcs (1.2.5)
dotenv (2.1.2)
dotenv-rails (2.1.2)
dotenv (= 2.1.2)
railties (>= 3.2, < 5.1)
erubis (2.7.0)
execjs (2.7.0)
factory_girl (4.8.0)
Expand Down Expand Up @@ -299,6 +302,7 @@ DEPENDENCIES
carrierwave
country_select
dotenv
dotenv-rails
execjs
factory_girl_rails
faker
Expand Down Expand Up @@ -329,4 +333,4 @@ DEPENDENCIES
uglifier (>= 1.3.0)

BUNDLED WITH
1.15.3
1.16.0
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@ If you are running this project in production you'll need to set environment var

## Email Setup

If you're using SMTP to send emails, set the required ENV variables in config/secrets.yml or create a hidden file /[your repo]/.env (and do not add it to the repository) that overrides the values you want to set like so:

```sh
SMTP_PASSWORD='this_is_not_the_password'
# ... more values as you need
```
If you're using SMTP to send emails, create a hidden file `.env` (it is already ignored by git) that overrides the values you want to set. See `.env.sample` for an example.

## Event-Specific Setup (do this every year)

Expand Down

0 comments on commit e132c3f

Please sign in to comment.