Skip to content

Commit ee48882

Browse files
committed
Write to a file?
1 parent 81d5fbf commit ee48882

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/check_deployment.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
output = `curl --verbose --silent http://localhost:3000/ 2>&1`
44

55
if $?.success? && output.include?('Browse the catalogue')
6-
docker_ps = `docker compose ps -a --format json`
6+
docker_ps = `docker compose ps -a --format json > out.json`
77
if $?.success?
88
begin
9-
j = JSON.parse(docker_ps)
9+
j = JSON.parse(File.read('out.json'))
1010
rescue => e
1111
puts "THE JSON:\n\n\n\n#{docker_ps}\n\n\n\n"
1212
raise e

0 commit comments

Comments
 (0)