cli icon indicating copy to clipboard operation
cli copied to clipboard

ps:forward (and others) enforce buildpack installed even for container deployes

Open brian-mcnamara opened this issue 7 years ago • 1 comments

Currently the CLI requires a buildpack (apparently any is fine, the check is for size > 0) for forwarding a port using ps:forward (ps:exec too). This is required for slug deploys however buildpacks have no use for container deploys.

The current issue is:

heroku ps:forward 9090 -a APP_NAME
 ▸    $APP_NAME has no Buildpack URL set. You must deploy your application first!

We do manually setup the exec for the container following https://devcenter.heroku.com/articles/exec#using-with-docker

The fix:

The best path forward may simple be to check if the app is a container image and skip the buildpack check.

brian-mcnamara avatar Mar 26 '19 21:03 brian-mcnamara

Closing as fixed. The buildpack-required guard in ps:forward correctly skips enforcement for container-stack apps in the current codebase — this was resolved when the ps-exec plugin was merged into the core CLI in PR #3582. A unit test verifies the behavior.

heroku-johnny avatar Jul 27 '26 15:07 heroku-johnny