Posts

Showing posts from January, 2025

Problem deploying app to heroku using GitHub Actions

If you get the following error when trying to use GitHub actions to deploy a Docker-based app to Heroku:  > Error: This command is for Docker apps only. Switch stacks by running > heroku stack:set container. Or, to deploy *** with heroku-24, Its telling you how to solve it in the error. I don't know why this happened only when I created a new app, it didn't seem to occur for the first app I created. Fixing using the heroku-cli seems like the only solution, I tried for a way to do it using the heroku GUI but it didn't seem possible. First, install heroku-cli: brew install heroku Firstly, you have to login: heroku login This should launch a webpage where you can login. After that, try to run a command which will list the current stack of your app: heroku stack If you get an error message such as: > Error: The following error occurred: > Missing required flag app > See more help with --help It means your app isn't hoo...