This project uses a premade application to showcase how to create a server and deploy the application.
Apply DevOps Skills
- Create a remote server using a cloud provider.
- Configure that server for application requirements.
- Create Linux user on server to run application.
- Transfer local build Jar file to remote server.
- Deploy and run the build file on our remote server.
- Configure server firewall to allow inbound connections to port application is running on for TCP connections.
Ensure that Java 17 and Gradle 8.11 are installed on the remote server. These are the versions I used to successfully configure and run this application without error. Using other versions may result in an incopatability between versions, resulting in a failure to build and deploy the application.
gradle buildscp <local jar file> <remote server>java -jar <.jar file>Adding "&" to the command will run the application in the background
[ctrl + c] will stop the application, but if you decided to run the application in the background with "&", there are some extra steps.
Locate only running java apps
ps aux | grep javaTake the PID column of the running application(process)
kill <pid of your app>