Skip to main content

Posts

Showing posts with the label deploy

Deploy java maven application from Bitbucket to ssh linux server automaticaly

Currently I'm working on a spring boot project.  The code is hosted on BitBucket GIT repository. I deploy  target application on Ubuntu Linux VPS server. At the beginning I was building my result jar manually, copying it manually to server, and restarting a service also manually using ssh shell. After some time I noticed, that it is quite annoying thing, so I decided to look around what other possibilities I have. It turned out that BitBucket has a solution ready to use, it just needs a little configuration. I'll describe full configuration process of Linux server and BitBucket account. At the end there will be possibility to deploy SpringBoot application from BitBucket to remote ssh server with just one click. Assumptions: App repository on BitBucket is called "backend". I'll be using dedicated user for deployment on Linux server. It will be  called also "backend". Linux server has already configured remote access via ssh. Linux