Answer the question
In order to leave comments, you need to log in
How to deploy spring application to server?
Good day, I’m studying spring, I want to try toy mini-sites (purely for myself and for educational purposes, so that not only on a local server through intelliJIDEA, but also be able to upload it to the server / hosting right away. How to do it? What is needed for that?
I googled, googled that you need to buy VPS hosting (which is very expensive for regular tests labs 1 labs 2) and install it through apache. Are there other ways that are less expensive?
Answer the question
In order to leave comments, you need to log in
Try heroku. There is an instruction for maven and gradle.
The platform takes your source code from the repository and deploys it on its servers. You don't have to pay to play.
I am using Hetzner Cloud. It costs 2.96 euros per month. Get vps, linux, etc. And then you can deploy the spring application. For information on how to deploy the application itself, see here:
https://www.baeldung.com/tomcat-deploy-war
https://docs.spring.io/spring-boot/docs/current/re...
https ://spring.io/blog/2014/03/07/deploying-spring...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question