Skip to content

Commit

Permalink
Fix relative root in Migrations task (#5266)
Browse files Browse the repository at this point in the history
* Fix relative root in Migrations task

* Remove slash at start of path
  • Loading branch information
scouillard authored Jun 20, 2023
1 parent 5a3b0b2 commit c2f88ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tasks/migrations/migrations.rake
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ namespace :migrations do
def uri(path)
raise red 'Unable to migrate: No "V3_ENDPOINT" provided, please check your .env file.' unless ENV["V3_ENDPOINT"].present?

res = URI(ENV["V3_ENDPOINT"])
res.path = "/api/v1/migrations/#{path}.json"
base_uri = URI(ENV["V3_ENDPOINT"])
res = URI::join(base_uri, "api/v1/migrations/#{path}.json")
res
end

Expand Down

0 comments on commit c2f88ad

Please sign in to comment.