heroku-deploy icon indicating copy to clipboard operation
heroku-deploy copied to clipboard

Double deploy when --force is enabled

Open namoscato opened this issue 2 years ago • 2 comments

Is there a reason deploy() is initially invoked with dontuseforce: true?

https://github.com/AkhileshNS/heroku-deploy/blob/79ef2ae4ff9b897010907016b268fd0f88561820/index.js#L224

When --force is enabled (dontuseforce: false), the initial deploy() is expected to fail before a second --force attempt, doubling the end-to-end time of the actual deploy.

namoscato avatar Apr 23 '22 13:04 namoscato

+1 for this. Would be awesome if we would be able to enforceforce :)

barna-ohana avatar Nov 04 '22 12:11 barna-ohana

I've created a PR to add this feature.

Hacklone avatar Nov 04 '22 12:11 Hacklone