From da8ab63cf4c925b8f2b275eafd399314a2f282ff Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 22 Mar 2017 18:53:39 +0000 Subject: [PATCH] Configure server_protocol and server_url correctly --- cookbooks/web/definitions/rails_port.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/web/definitions/rails_port.rb b/cookbooks/web/definitions/rails_port.rb index fe60c1c64..6d0c966ab 100644 --- a/cookbooks/web/definitions/rails_port.rb +++ b/cookbooks/web/definitions/rails_port.rb @@ -110,8 +110,8 @@ define :rails_port, :action => [:create, :enable] do end application_yml = edit_file "#{rails_directory}/config/example.application.yml" do |line| - line.gsub!(/^( *)#server_protocol:.*$/, "\\1server_protocol: \"https\"") - line.gsub!(/^( *)#server_url:.*$/, "\\1server_url: \"#{name}\"") + line.gsub!(/^( *)server_protocol:.*$/, "\\1server_protocol: \"https\"") + line.gsub!(/^( *)server_url:.*$/, "\\1server_url: \"#{name}\"") line.gsub!(/^( *)#publisher_url:.*$/, "\\1publisher_url: \"https://plus.google.com/111953119785824514010\"") -- 2.39.5