

Then change the server root document to this line. sudo nano /etc/nginx/sites-enabled/default Next, open the Nginx configuration file using a text editor. With these tags to move the current document folder to the new web application. Open the Tomcat 9 server.xml with a text editor. All shortcuts showin in this article will work for windows and mac os x operating systems eclipse versions. sudo cp mynotes-0.0.1-SNAPSHOT.war /opt/tomcat/webapps/ Copy the transferred war file to the Tomcat webapps folder. ssh Įnter the password that you are using for the server user. scp NetBeansProjects/mynotes/build/libs/mynotes-0.0.1-SNAPSHOT.war :~/Ĭonnect to the VPS using SSH. Next, transfer the war file to your Ubuntu VPS. The Tomcat version is different but the configuration remain the same.

We already make a tutorial for installing Nginx and Tomcat on Ubuntu VPS. We are installing both the HTTP server and Container in Ubuntu VPS. Make sure you have installed both of them. We will use Tomcat 9 and Nginx as a reverse proxy for Tomcat 9. That Gradle builds command will create a. git clone mynotesīuild this Spring Boot application by type this command inside this application folder. We will use the existing Spring Boot, MVC, Data, and Security Web Application that previously created in our other tutorial. Step #1: Download Existing Spring Boot, MVC, Data and Security Web Application

Then, you can build your application as follows: mvn install If you are running a Maven project, you can build and run a Spring Boot application from the command line by adding the following maven plugin:

Running a Spring Boot application from the command line is pretty easy.
