Skip to content
Snippets Groups Projects
Unverified Commit c2f88ad7 authored by Samuel Couillard's avatar Samuel Couillard Committed by GitHub
Browse files

Fix relative root in Migrations task (#5266)

* Fix relative root in Migrations task

* Remove slash at start of path
parent 5a3b0b2c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment