Skip to content

Prod Build

yavuzgok edited this page Nov 21, 2018 · 2 revisions
  1. Create runnable jar
mvn clean install
  1. Install mysql and create a database named leadlet_api
  2. Create a user for this database and set username and password to environment
export MYSQL_USERNAME=myusername
export MYSQL_PASSWORD=mypassword
  1. Update datasource url for mysql in this line
  2. Install Elasticsearch
  3. Put Elasticsearch username and password to environment
export ES_USERNAME=esuser
export ES_PASSWORD=espassword
  1. Update host for Elasticsearch in this file
  2. Run app
java -jar target/leadlet.xyx.jar

Clone this wiki locally