Heroku WAR Deployment

Heroku WAR Deployment

Deployment with the Heroku CLI

The Heroku CLI Deploy Plugin deploys a local WAR file to Heroku and runs it with Tomcat Webapp-Runner. You can install or update the plugin with this command:

$ heroku plugins:install heroku-cli-deploy

And as long as you have a Java runtime installed locally, you can deploy with this command:

$ heroku war:deploy <path_to_war_file> --app <app_name>

The CLI plugin uses the same underlying code as the Heroku Maven plugin, but without the Maven integration. As a result, it supports many of the same configuration options but with a different mechanism. You can learn how to customize this tool in Configuring WAR Deployment with the Heroku CLI.