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
.)
heroku ...
command that will build the app from the master branch. In your example, however - You are using the git command, which is I wish could be redundant as for my explanation. Because I'd like to have a build process that has not access directly to the git project. –
Encrinite heroku deploy:master -a myapp
–
Encrinite 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:[email protected]/repos/<username>/<repo name>/tarball/master/ --app <app-name>
Where user is your Github username and token is a Github personal access token (reference)
© 2022 - 2024 — McMap. All rights reserved.