An API for accessing aggregated EF data for Torchlite
sbt clean stage
Then find the result in target/universal/stage/
Copy the folder target/universal/stage/
to the deployment location and rename as desired (henceforth referred to as DEPLOY_DIR
).
- Generate an application secret by running
sbt playGenerateSecret
- Set
TORCHLITE_EFAPI_MONGODB_URI
environment variable to point to the Mongo instance holding the EF data - Set
TORCHLITE_EFAPI_SECRET
environment variable to the value generated by step 0
(alternatively, these settings can also be configured by editing target/universal/stage/conf/application.conf
)
Note: You must have the environment variables set before running (or edited the application.conf
accordingly)
$DEPLOY_DIR/bin/htrc-torchlite-efapi -Dhttp.address=HOST -Dhttp.port=PORT -Dplay.http.context=/api
where HOST
is the desired hostname or IP to bind to, and PORT
is the desired port to run on.
TBD