I would like to suggest that it would be configurable where to push from for production.
I was recently working on a project, which has a development and a production branch. However, (trying) to deploy with production deploy results in the following:
❯ production deploy
error: src refspec master does not match any
error: failed to push some refs to 'https://git.heroku.com/XXX.git'
While I understand, that this is also a "security" issue, for not pushing wrong branches to production environments, it would be nice to configure, how to push to production.
I would like to suggest that it would be configurable where to push from for production. I was recently working on a project, which has a
development
and aproduction
branch. However, (trying) to deploy withproduction deploy
results in the following:While I understand, that this is also a "security" issue, for not pushing wrong branches to
production
environments, it would be nice to configure, how to push to production.Lines, where the magic happens: https://github.com/thoughtbot/parity/blob/main/lib/parity/environment.rb#L42-L63