A platform for community discussion. Free, open, simple.
DEV: Detect correct data dir using ENV
Rafael dos Santos Silva1c0c425f3861
diff --git a/lib/tasks/docker.rake b/lib/tasks/docker.rakeindex 1b74d3ee20c..2d1f9fee148 100644--- a/lib/tasks/docker.rake+++ b/lib/tasks/docker.rake@@ -97,7 +97,7 @@ task 'docker:test' doputs "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