DEV: Detect correct data dir using ENV

This commit is contained in:
Rafael dos Santos Silva 2020-05-12 13:10:57 -03:00
parent 497dc6eaa7
commit 1c0c425f38
No known key found for this signature in database
GPG Key ID: 5E50360227B34938

View File

@ -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