Test and go live

Run in development 

  1. To load the system environment variables that you added when setting up the connector, run: 
    source ~/.bashrc
  2. To start your application in the development profile, run:
    ./gradlew

For more information, refer to JHipster documentation.

Tests

  • To launch your application's tests, run:
    ./gradlew test

For more information, refer to JHipster documentation.

Run in production 

  1. Load the system environment variables that you added when setting up the connector.
  2. To start your application in the production profile, run:
    ./gradlew -Pprod clean bootRepackage

    This profile will compile, test and package your application with all productions settings.

  3. To ensure that everything worked, run:
    java -jar build/libs/*.war

For more information, refer to JHipster documentation.

Deploy to Heroku 

The connector can be deployed to Heroku only for testing purposes using our test platform.

We have pre-configured the following add-ons:

  • a free to use database (SharkDB).
  • a free to use short-lived email inbox (Mailtrap).

If you want to use Mailtrap, you need to obtain the MAIL_USER and MAIL_PASS parameters after initial deployment. To do that:

  1. Click on the Mailtrap AddOn.
  2. Open the welcome mail in the Mailtrap Inbox. 
  3. Update the configuration of the Connector APP to restart the server with the mail-server credentials.

You need to configure the application with the system environment variables that you added when setting up the connector.

Logging

By default the connector will log in adyen-dev.log and adyen-prod.log files. You can change this configuration in the application.yml file.

For more information, refer to JHipster documentation.