DEV: Detect correct data dir using ENV
This commit is contained in:
parent
497dc6eaa7
commit
1c0c425f38
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue