1 |
|
2 |
|
3 | NF="node ../nf.js"
|
4 |
|
5 | rm -rf sandbox
|
6 | mkdir -p sandbox
|
7 |
|
8 | PORT=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
|
11 | grep -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 |
|
15 | exit 1
|