Deploy a Java web app on Heroku

There are many ways to use heroku, such as using Github and the command line, but it didn't work when I looked at it, so here for those who didn't work as well and my memorandum. I will write it. This is pretty easy to do.

Use war file

A war file is a compressed file of the entire application.

This command enables the heroku deploy command. heroku plugins:install heroku-cli-deploy

heroku deploy: war dist / app name.war

The dist part is the path. Please note that not found will be displayed if the path is incorrect.

Recommended Posts

Deploy a Java web app on Heroku
How to deploy a simple Java Servlet app on Heroku
[Java] Deploy a web application created with Eclipse + Maven + Ontology on Heroku
Deploy your Rails app on Heroku
How to deploy a kotlin (java) app on AWS fargate
Deploy Java Servlet app locally on Tomcat
Deploy a Tomcat-based Eclipse project on Heroku
How to deploy on heroku
I made a shopify app @java
Deploy Flask's Docker image on Heroku
Deploy Rails on Docker to heroku
Four things Heroku stumbled upon when deploying a web app created in Java with GitHub
heroku deploy
How to deploy an app that references a local jar to heroku
Automatically deploy a Web application developed in Java using Jenkins [Preparation]
How to redo a deployment on Heroku
Try deploying a Rails app on EC2-Part 1-
[Java] Stepping on a JDK compiler bug
Deploy to Heroku [Ruby on Rails] Beginner
Create a TODO app in Java 7 Create Header
Build a Java development environment on Mac
Deploy Java programs on SAP Cloud Platform
Try making a calculator app in Java
I made a calculator app on Android
Building Java Web Applications on Windows Server 2016
Build Web Application Server (Java) on VPS
Clone your own web app on GitLab when building a Docker image
Automatically deploy a web application developed in Java using Jenkins [Spring Boot application]
Consolidate your JavaFX app into a jar that runs on both Java 8/11
Volume of trying to create a Java Web application on Windows Server 2016
A story about Java 11 support for Web services
How to deploy a container on AWS Lambda
Create a Lambda Container Image based on Java 15
How to display a web page in Java
I want to play a GIF image on the Andorid app (Java, Kotlin)
I built a Java EE environment on AWS and tried running a web application
Ssh login to the app server on heroku
Build a streaming server on your iOS app
Let's create a super-simple web framework in Java
CICS-Run Java application-(1) Run a simple sample app
Hello World, a cross-platform GUI app with Groovy running on the Java platform
heroku: docker: deploy
Deploy a Spring Boot application on Elastic Beanstalk
Build a Java runtime environment on Sakura VPS
I tried running Java on a Mac terminal
Ssh connect using SSHJ from a Java 6 app
[For beginners] Until building a Web application development environment using Java on Mac OS
Create a portfolio app using Java and Spring Boot
Create a Java development environment using jenv on Mac
Create a docker image that runs a simple Java app
How to deploy to Heroku from a local docker image
Deploy Java apps on the IBM Cloud Kubernetes service
I tried using Log4j2 on a Java EE server
[Java] How to execute tasks on a regular basis
Introducing New Relic to Java apps running on Heroku
Create a JAVA WEB application and try OMC APM
Creating a lightweight Java environment that runs on Docker
Web Bluetooth on Ubuntu20.04
Let's touch on Java
Steps to deploy to Heroku
Install Java on Mac