openboxes-docs Documentation, Release 0.7.18
(continued from previous page)
dataSource.username=openboxes
dataSource.password=openboxes
# OpenBoxes mail settings - disabled by default
grails.mail.enabled=false
# OpenBoxes > Inventory Browser > Quick categories
#openboxes.inventoryBrowser.quickCategories=ARVs,MEDICAL SUPPLIES,FOOD,EQUIPMENT,
˓→MEDICINE
# OpenBoxes > Choose Location > Required Activities
# The supported activities required in order for a location a location to show up on
˓→Choose Location page.
# Possible values: MANAGE_INVENTORY, PLACE_ORDER, PLACE_REQUEST, FULFILL_ORDER,
˓→FULFILL_REQUEST, SEND_STOCK, RECEIVE_STOCK, EXTERNAL
#openboxes.chooseLocation.requiredActivities = MANAGE_INVENTORY
# If you wish to not set up any test data, you can indicate this per the below
# (eg. if you are running from a copy of a production db)
# openboxes.fixtures.enabled=false
# If you want to track users via Google analytics
#google.analytics.enabled = false
#google.analytics.webPropertyID = <Google Analytics Key>
NOTE: If you are running in development mode with a copy of an existing database, you may want to instruct the
application to bypass the test data fixtures automatically. You can achieve this by commenting out the openboxes.
fixtures.enabled property. Unfortunately, the .properties files DO NOT deal well with boolean values so com-
menting out is the only way to set this property. If you want a more elegant approach, you can add all boolean
properties to openboxes-config.groovy.
#openboxes.fixtures.enabled=true
6. Grails Upgrade or Grails Compile
Either of the following actions (upgrade, compile, run-app) should generate the all important Spring configuration
(/WEB-INF/applicationContext.xml) and start the dependency resolution process.
grails upgrade
OR
grails compile
The grails compile step is not necessary since grails run-app will invoke the compilation step, but it
doesn’t hurt anything.
If you see any errors, run the command again.
IMPORTANT That last line is important. Because of some quirkiness with the way older versions of Grails resolve
dependencies and generates config files, you may need to run either of these commands multiple times in order to
resolve all dependencies and generate the config files.
Once the dependency resolution phase has completed, all dependencies will be stored in a local ivy cache (usually
under $USER_HOME/.grails/ivy-cache). You do not have to worry about this, just know that the dependen-
10.1. Getting Started 33