From 1c0c425f38616e801b5b917d3c95706f9a2a8e5c Mon Sep 17 00:00:00 2001 From: Rafael dos Santos Silva Date: Tue, 12 May 2020 13:10:57 -0300 Subject: [PATCH] DEV: Detect correct data dir using ENV --- lib/tasks/docker.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/docker.rake b/lib/tasks/docker.rake index 1b74d3ee20c..2d1f9fee148 100644 --- a/lib/tasks/docker.rake +++ b/lib/tasks/docker.rake @@ -97,7 +97,7 @@ task 'docker:test' do puts "Starting background redis" @redis_pid = Process.spawn('redis-server --dir tmp/test_data/redis') - @postgres_bin = "/usr/lib/postgresql/10/bin/" + @postgres_bin = "/usr/lib/postgresql/#{ENV['PG_MAJOR']}/bin/" `#{@postgres_bin}initdb -D tmp/test_data/pg` # speed up db, never do this in production mmmmk