using Heroku CLI.
If I have the remote git on my computer I can do git push my-heroku-remote master
But because my heroku app is already connected to the git project, I find this approach redundant.
Any ideas?
using Heroku CLI.
If I have the remote git on my computer I can do git push my-heroku-remote master
But because my heroku app is already connected to the git project, I find this approach redundant.
Any ideas?
I prefer the GitHub auto-deployment over the git push heroku master
because it works great with a GitHub Flow (Pull Requests to master). But if you would rather do manual deployments to Heroku from your dev machine you can fetch and push:
git fetch origin master:master
git push heroku master:master
(Assuming the GitHub remote is named origin
and the Heroku remote is named heroku
.)
Taken from here:
This can be done with the builds-create Platform API endpoint.
There is a Builds CLI plugin that makes this easier:
heroku builds:create --source-url https://user:token@api.github.com/repos/<username>/<repo name>/tarball/master/ --app <app-name>
Where user is your Github username and token is a Github personal access token (reference)