brobbot-pg-brain
v3.0.2
Published
postgres-backed brain for brobbot
Downloads
17
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 pg
Configuration
URL
Use one of the following environment variables to set the Postgres URL:
HEROKU_POSTGRESQL_*_URL
DATABASE_URL
POSTGRESQL_URL
HEROKU_POSTGRESQL_BLUE_URL=postgres://user:password@localhost/brobbot ./index.sh -b pg
Table name
Set BROBBOT_PG_TABLE_NAME
to change the default table name ('brobbot'
).
BROBBOT_PG_TABLE_NAME=robot ./index.sh -b pg
Data key prefix
Set BROBBOT_PG_DATA_PREFIX
to change the default key prefix ('data:'
).
BROBBOT_PG_DATA_PREFIX=brobbot-data: ./index.sh -b pg