'Heroku: How do you push to specific app if you have multiple apps in heroku?

I create a new heroku app using heroku create test-app3. Now if I want to push some code to this new test-app3, how do I do that?

When I type heroku list in the terminal I get: My Apps

  • test-app1
  • test-app2
  • test-app3

How do I push to test-app3? How do I switch between which app to push to?



Solution 1:[1]

You navigate your app from terminal -> cd test-app3 then git add . -> git commit -m"your message" -> git push and finally git push heroku master or main(use main if your branch is main otherwise master)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Wahid