Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java

Deploy Java Spring app to server

So I have a Java Spring app from the Java Spring section, but it doesn't show how to deploy it. I haven't found anything here that explains that either. I found online that I may just need to add one line to my Gradle config file? Then I would just upload the root directory to the server as I would any html project?

1 Answer

How you deploy does depend a bit on where you're deploying the app. Heroku is a popular deployment service that supports a number of different platforms. You can easily deploy standalone Spring Boot apps there and others. Treehouse has a workshop on deploying a Node.js app to there. Much of it is applicable regardless of platform.

https://devcenter.heroku.com/articles/getting-started-with-gradle-on-heroku#introduction