Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Module setup

...

These are: couchdb, postgres, jedis, lettuce, Basic Auth and lettuceOauth2. Couchdb and Postgres profile are used to define the main data store while Jedis and Lettuce, the redis client to use. Basic Auth and Oauth2 profile are used to determine which authentication methods are enabled. Basic Auth supports only Basic Auth while Oauth2 supports Basic auth and Oauth2

Postgres and , Jedis and Basic Auth are activated by default and they will be active profiles when you run the following command

mvn clean package

But when you specify a property, maven  the active ones are overriden. Couchdb will be the only active profile when you run the following command

...

mvn clean package -P couchdb,jedis,basic_auth

You can also use activation commands to enable a profile, with this method you can override a maven profile without specifying the other defaults
e.g


Info
mvn clean package -Dopensrp.database.profile=couchdb


Deployment

Once tomcat is running, you can install the opensrp.war file from target folder into the webapps directory in order to run the application.

...