UNPKG

363 Bapplication/x-shView Raw
1#!/bin/bash
2
3NF="node ../nf.js"
4
5rm -rf sandbox
6mkdir -p sandbox
7
8node ../nf.js --procfile fixtures/Procfile.port --env fixtures/env.port start > sandbox/ports.txt
9
10# default is 5000, env.port specifies 3000
11grep -q -F -e 3000 sandbox/ports.txt && \
12 grep -q -F -e 3100 sandbox/ports.txt && \
13 grep -q -F -e 3200 sandbox/ports.txt && exit 0
14
15exit 1