brobbot-pg-brain
v3.0.2
Published
postgres-backed brain for brobbot
Readme
brobbot-pg-brain
A Postgres-backed brain for brobbot.
Requires Postgres 9.4 or higher.
Usage
In your brobbot-instance:
npm install --save brobbot-pg-brain
./index.sh -b pgConfiguration
URL
Use one of the following environment variables to set the Postgres URL:
HEROKU_POSTGRESQL_*_URLDATABASE_URLPOSTGRESQL_URL
HEROKU_POSTGRESQL_BLUE_URL=postgres://user:password@localhost/brobbot ./index.sh -b pgTable name
Set BROBBOT_PG_TABLE_NAME to change the default table name ('brobbot').
BROBBOT_PG_TABLE_NAME=robot ./index.sh -b pgData key prefix
Set BROBBOT_PG_DATA_PREFIX to change the default key prefix ('data:').
BROBBOT_PG_DATA_PREFIX=brobbot-data: ./index.sh -b pg