UNPKG

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