Skip to content

Command Line Parameters

assimbly edited this page May 24, 2022 · 8 revisions

Command Line Parameters

Assimbly Gateway can be started with several command line parameters:

java -jar gataway.jar --parameter1=value1 --parameter2=value2

List Command Line Parameters

Port

  • Parameter: server.port
  • Example: --server.port=8083
  • Explanation: Change the port to host Assimbly

Gateway name

  • Parameter: application.gateway.name
  • Example: --application.gateway.name=Gateway1
  • Explanation: Set the name of the Gateway instance

Base Directory

  • Parameter: application.gateway.base-directory
  • Example: --application.gateway.base-directory=/path/todir
  • Explanation: Directory where resources stored (logs, certificates, database)

Tracing

  • Parameter: application.gateway.tracing
  • Example: --application.gateway.tracing=true
  • Explanation: Tracing logs message details of all flows

Debugging

  • Parameter: application.gateway.debugging
  • Example: --application.gateway.debugging=true
  • Explanation: Turns on debug logging

Clean

  • Parameter: clean
  • Example: --clean=true
  • Explanation: Deletes the base-directory of .assimbly (removes all logs, alerts and data)

Backup

  • Parameter: backup
  • Example: --backup=/pathto/directory
  • Explanation: Backups the base-directory to a specified directory

Restore

  • Parameter: restore
  • Example: --restore=/pathto/directory
  • Explanation: Restores a previous made backup to the base-directory (overwrites existing base-directory)

Use deploy directory on Startup

  • Parameter: application.gateway.deploy-directory.deploy-on-start
  • Example: --application.gateway.deploy-directory.deploy-on-start=false
  • Explanation: When parameter is set to false, Assimbly ignores the files in the deploy directory.

Use deploy directory on Change

  • Parameter: deploy-on-change
  • Example: --application.gateway.deploy-directory.deploy-on-change=false
  • Explanation: When parameter is set to false, Assimbly ignores the files changed (create/update/delete) in the deploy directory.

Database

Clean Database

  • Parameter: cleandb
  • Example: --cleandb=true
  • Explanation: Deletes the database .assimbly (removes all data)

Database url

  • Parameter: spring.datasource.url
  • Example: --spring.datasource.url=jdbc:mysql://localhost:3306/gateway
  • Explanation: JDBC url of an external database (MySQL, PostrgreSQL etc)

Database username

  • Parameter: spring.datasource.username
  • Example: --spring.datasource.username=myUsername
  • Explanation: Username of an external database

Database username

  • Parameter: spring.datasource.password
  • Example: --spring.datasource.password=myPassword
  • Explanation: Password of an external database

Spring boot configuration

Assimbly is a Spring Boot application. This means that it possible to set command line parameters from the Spring Boot configuration. You can find the configuration files here

More info:

Spring Boot Externalized Configuration

Clone this wiki locally