feat: expand the PORT environment variable when provided

Refs #2793
Refs #3196
This commit is contained in:
Jose Diaz-Gonzalez
2018-07-29 13:32:04 -04:00
parent 2db8f93507
commit c924bdef04
3 changed files with 26 additions and 22 deletions

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