setup-postgres.sh 243 B

1234567891011121314151617
  1. #!/bin/bash
  2. fw_depends postgresql crystal
  3. shards install
  4. crystal build --release --no-debug server-postgres.cr
  5. export GC_MARKERS=1
  6. export KEMAL_ENV=production
  7. for i in $(seq 1 $(nproc --all)); do
  8. ./server-postgres -p 8080 &
  9. done
  10. wait