mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 10:55:54 +08:00
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
Block a user