Skip to content

Backend

sjutz edited this page Jun 16, 2018 · 24 revisions

Local development

For local development, you need

  • JBoss (tested with Wildfly 11)
  • to be connected to your project on Openshift via commandline-tool (oc)

Deployments:

  • hogajama-rs
  • hogajama-frontend

Configurations

Add JBoss-System-Property eg with JBoss-Cli

/system-property="mongo.host":add(value="localhost")

Set MONGODB_PASSWORD in environment variable

  • Linux: Add export MONGODB_PW=currentMongoDbPassword to .bash_profile
  • Windows: Add MONGODB_PW=currentMongoDbPassword` to environment variables

Connect to database

Bash:

MONGODB = $(oc get pods -o=custom-columns=NAME:.metadata.name -l name=mongodb --no-headers=true) oc port-forward $MONGODB 27017

PowerShell:

$MONGODB = oc get pods -o=custom-columns=NAME:.metadata.name -l name=mongodb --no-headers=true oc port-forward $MONGODB 27017

Troubleshooting

Website shows "Could not load data. Please try again later."

  • Check if you are still connected to MongoDB. Sometimes connection is lost.
  • If you just added the environment variables, restart your JBoss, IDE