#!/usr/bin/env bash pg_ctl -o "-c listen_addresses='localhost'" -w restart cd /app if [[ -d "./lib" ]]; then node ./lib/index.js else yarn ts ./src/index.ts fi