By N P
I have a spring boot webservice rest API thats currently working on my development machine. How do i deploy into a droplet either graphically or through any command line (CLI). Does digital ocean cloud service support Cloud Foundry ? I was wondering if i can do cf-push a war/jar. Any sort of pointers or directions would be of great help.Looking forward to a direction.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
The simplest answer would be to install the tomcat server on your droplet.
Once the tomcat server is installed and running then navigate to the manager module by typing http://{YOUR_PUBLIC_IP}/manager/ or by clicking on the link present on the home page of the tomcat.
Scroll down below and there you will see an option to deploy the war file. Simply, upload the war file package of your spring boot web service and it should work.
Making your fat jar fully executable will allow you to install it as service: https://docs.spring.io/spring-boot/docs/current/reference/html/deployment-install.html
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.