anna-codefresh / sparkjava-war-example

Build war with maven and sparkjava framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deploying an Application to Tomcat using SCP and Codefresh

tomcat-and-codefresh

Original source

This is a simple Hello World application using the Spark Java framework.

Prerequisites

  • A free Codefresh account
  • A distribution of Tomcat setup on a remote/local server (running with port 8080 exposed, if you are not running this locally)

Build/Deploy Locally

  1. Run mvn clean package
  2. Copy the war file from the /target directory into the Tomcat 'webapps' directory
  3. Access the application at http://localhost:8080/sparkjava-hello-world-1.0/hello in your browser

Build in Codefresh

Example pipeline

About

Build war with maven and sparkjava framework


Languages

Language:Java 100.0%