Skip to content
Snippets Groups Projects

switch to https

Merged Christopher Guindon requested to merge cguindon/master/https into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -41,7 +41,7 @@ end
## Get the project ID from env var, extracting from pattern 'project-###'
project_id = ENV['GL_REPOSITORY'][8..-1]
## Get data about project from API
project_response = HTTParty.get("http://localhost/api/v4/projects/#{project_id}")
project_response = HTTParty.get("https://localhost/api/v4/projects/#{project_id}")
    • Wouldn't this fail on any non-production instance? Do we maybe want to look at something like an ENV var?

Please register or sign in to reply
## Format data to be able to easily read and process it
project_json_data = MultiJson.load(project_response.body)
## Get the web URL
Loading