Skip to content

Commit

Permalink
Heroku Security Setup #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Deovandski committed Jan 17, 2016
1 parent 455b06e commit ce254ff
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ rerun.txt
pickle-email-*.html

# Secrets
config/initializers/secret_token.rb
config/secrets.yml

## Environment normalisation:
/.bundle
Expand Down
3 changes: 0 additions & 3 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ class Application < Rails::Application
# Fallback to assets pipeline if a precompiled asset is missed.
config.assets.compile = true

# Heroku: prevent app from starting up during precompilation...
config.assets.initialize_on_precompile = false

# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
Expand Down
5 changes: 5 additions & 0 deletions config/initializers/secret_token.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Rails.application.config.secret_key_base = if Rails.env.development? or Rails.env.test?
('x' * 30) # meets minimum requirement of 30 chars long
else
ENV['SECRET_KEY_BASE']
end
13 changes: 0 additions & 13 deletions config/secrets.yml

This file was deleted.

0 comments on commit ce254ff

Please sign in to comment.