Question

How to deploy spring application on DO?

Hi,

I’m creating a spring web app and would like to deploy it on Digital Ocean. I can see it is quite simple to deploy React through github. Is it the same case with Spring?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

In addition to what has already been mentioned, in case that you are referring to the App Platform rather than a Droplet.

What you need to do is use a Dockerfile or a Docker image to deploy your Spring boot application to the App Platform:

https://docs.digitalocean.com/products/app-platform/languages-frameworks/docker/

Basically, the following is a list of the natively-supported languages and frameworks that App Platform

https://docs.digitalocean.com/products/app-platform/languages-frameworks/

As Java is not on the list, the way to go would be with a Docker file or a Docker image.

Best,

Bobby

Hi @SandyNavyMantaRay,

You can check out SpringBoot + DigitalOcean Droplets post for how to deploy simple App on a DigitalOcean droplets.

Hope it helps you, - Sergio Turpín