From: Tom Hughes Date: Wed, 22 Mar 2017 18:53:39 +0000 (+0000) Subject: Configure server_protocol and server_url correctly X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/da8ab63cf4c925b8f2b275eafd399314a2f282ff?hp=3d9b73d7e89d4b4266840a2f5fb7f90061d5c1b6;ds=sidebyside Configure server_protocol and server_url correctly --- 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\"")