Commit 369955566746ef590b54dd203a320453d50f2108
Exists in
master
and in
1 other branch
Merge pull request #381 from khustochka/heroku_assets_precompile
Ignore SECRET_TOKEN absense during assets:precompile
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
config/initializers/secret_token.rb
... | ... | @@ -13,7 +13,8 @@ else |
13 | 13 | if ENV['SECRET_TOKEN'].present? |
14 | 14 | Errbit::Application.config.secret_token = ENV['SECRET_TOKEN'] |
15 | 15 | |
16 | - else | |
16 | + # Do not raise an error if secret token is not available dureng assets precompilation | |
17 | + elsif ENV['RAILS_GROUPS'] != 'assets' | |
17 | 18 | raise <<-ERROR |
18 | 19 | |
19 | 20 | You must generate a unique secret token for your Errbit instance. | ... | ... |