Skip to content

Backend

sjutz edited this page Jun 16, 2018 · 24 revisions

Local development

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:

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 "Could not load data. Please try again later." - Check if you are still connected to MongoDB. Sometimes connection is lost.