Deploying spring boot and vue to production apache server

03 November , 2019   Blog

Since, both project are seperate project with directory

  • frontend
  • backend

So our first task is to build the project.

Since we are using maven so we wil use following command on the root of the main project

mvn clean package

Since, in spring boot, we need to specify upload location with is absolute so on my mac, i am unable to create directory as


so for building without testing , i will perform following command

mvn clean package -Dmaven.test.skip=true

After successful build,

war file will be created on backend/target/artifiactid.war.

Since i have used tomcat on our production server, i need to create war

Afterward i will deploy it to the server


scp target/backend-0.0.1-SNAPSHOT.war [email protected]:/opt/tomcat/

In such a way, after file transfer is completed then

since it is ROOT.war , it will automatically run the updated version on the tomcat.



Happy Coding :)

#programming #Freelancer
Share With