Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
source :rubygems
ruby '1.9.3'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest dropping your eb50ef0 commit, because:

  • Ruby 1.9.3 is specified in Gemfile as of ab1b97d.
  • This isn't relevant to using ENV variables for configuration.
  • Merging your branch will conflict because the Gemfile source has also been changed.


# FRAMEWORK
gem 'rails', git: 'git://github.com/rails/rails.git', branch: '3-2-stable'
Expand Down
5 changes: 5 additions & 0 deletions config/initializers/dogfood.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@

Squash::Ruby.configure Squash::Configuration.dogfood

Squash::Configuration.authentication.strategy == 'password'
Squash::Configuration.authentication['password'] = {
salt: ENV['SQUASH_AUTHENTICATION_PASSWORD_SALT']
}

# Auto-configure development dogfood

unless defined?(IRB)
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/secret_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
Squash::Application.config.secret_token = '_SECRET_'
Squash::Application.config.secret_token = ENV['SQUASH_SECRET_TOKEN']