Skip to content

Commit

Permalink
Merge pull request #67 from CLOSER-Cohorts/hotfix_email-less-setup
Browse files Browse the repository at this point in the history
Initial setup bugfixes
  • Loading branch information
wpoynter committed Aug 3, 2016
2 parents 4e154d6 + 7adb67e commit e0b8267
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/controllers/application_controller.rb
Expand Up @@ -34,6 +34,7 @@ def setup
u.group = g
u.save!
u.admin!
u.confirm
end

end
Expand Down
4 changes: 2 additions & 2 deletions config/application.rb
Expand Up @@ -32,8 +32,8 @@ class Application < Rails::Application
config.autoload_paths += %W(#{config.root}/lib)

config.action_mailer.delivery_method = :postmark
config.action_mailer.postmark_settings = { :api_token => ENV['POSTMARK_API_KEY'] }
config.action_mailer.default_url_options = {host: 'archivist.closer.ac.uk'}
config.action_mailer.postmark_settings = { api_token: ENV['POSTMARK_API_KEY'] }
config.action_mailer.default_url_options = {host: (ENV['HOSTNAME'] || 'localhost')}

config.after_initialize do
begin
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/filter_parameter_logging.rb
@@ -1,4 +1,4 @@
# Be sure to restart your server when you modify this file.

# Configure sensitive parameters which will be filtered from the log file.
Rails.application.config.filter_parameters += [:password]
Rails.application.config.filter_parameters += [:password, :confirm]

0 comments on commit e0b8267

Please sign in to comment.