feat: expand the PORT environment variable when provided
Refs #2793 Refs #3196
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user