Quick Tutorial: Spring Boot Deployment on Heroku

Random Access Videos · 17K views · 2017 · 6:35

Open on YouTube

Cloud, DevOps & reliabilityWeb developmenttutorialdated

Why Stack Overflow recommends it

Stack Overflow users cite it as the guide they followed for deploying Spring Boot to Heroku, usually when their git push or build then fails and they ask for help.

Recommended by 0 people across 0 different months, 2018 to 2020.

What it is

A roughly six-minute screencast showing how to deploy a Spring Boot application to Heroku, including attaching the Postgres add-on so the app's database connection works after deployment. It uses a demo GitHub project and the Heroku CLI, presented by the channel Random Access Videos.

What people said

Cites dsfgdsg · 2018-01 · Stack Overflow · on “Error while performing push command in git”

Using the guide [this video] I want to deploy the application to Heroku. However, git push heroku master throws an error: :compileJava NO-SOURCE :processResources NO-SOURCE :classes UP-TO-DATE :findMainClass :jar :bootRepackage FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':bootRepackage'. > Unable to find main class * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 15.555 secs ! ERROR: Failed to run Gradle! We're sorry this build is failing. If you can't find the issue in application code, please submit a ticket so we can help: [LINK] You can also try rever

Cites Piotr Dawidziuk · 2018-05 · Stack Overflow · on “Heroku doesn't see CSS and static txt file in Spring Boot”

I created a simple Maven web application in Spring that tests the strength of passwords and saves them to MySQL database. Then I changed it to Spring Boot so I can upload it to Heroku. Both versions work well on localhost:8080, but when I uploaded the Spring Boot version to Heroku, it doesn't see the CSS file nor a text file with the list of words I use to find out if the password contains any existing words in English. Here is the link to my app on Heroku [LINK] As you can see, there are no background or font colors and there is an error as soon as it tries to find "english.txt" file which is the list of words. Here is the link to Git Hub: [LINK] The only difference is that in the Heroku ve

Cites obzdx · 2020-07 · Stack Overflow · on “Error compiling maven, spring: Invalid target release 13, when trying to upload project on heroku”

I have a Spring project and I'm trying to upload it to heroku using this tutorial: [this video] But I get this error [LINK] . I tried to change the java.version in pom from 14 to 11 but still it dosen't work. Here is the java/maven version [LINK] And here is the pom file: <?xml version="1.0" encoding="UTF-8"?> <project xmlns=" [LINK] " xmlns:xsi=" [LINK] " xsi:schemaLocation=" [LINK] [LINK] "> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.1.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>com.coronavirus</groupId> <artifactId>demo</artifactId> <vers