feat: expand the PORT environment variable when provided

Refs #2793
Refs #3196
This commit is contained in:
Jose Diaz-Gonzalez committed 2018-10-11 20:19:56 -04:00
1 parent 2db8f93507
commit c924bdef04
3 files changed
+26 -22

No files matched your search

+3 -3
View File
@@ -16,13 +16,13 @@ teardown() {
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_CORE_AVAILABLE_PATH/ps/functions"
cat <<EOF > "$DOKKU_ROOT/$TEST_APP/DOKKU_PROCFILE"
web: node web.js
web: node web.js --port \$PORT
worker: node worker.js
EOF
run get_cmd_from_procfile "$TEST_APP" web
run get_cmd_from_procfile "$TEST_APP" web 5001
echo "output: "$output
echo "status: "$status
assert_output "node web.js"
assert_output "node web.js --port 5001"
run get_cmd_from_procfile "$TEST_APP" worker
echo "output: "$output