Configuration environment for running an
ilp-connector
Redis
Install Redis using brew
on Mac:
brew install redis
Start running the background service:
brew services start redis
The default configuration should work out of the box. If necessary, however, you can edit it here:
sudo open /usr/local/etc/redis.conf
To confirm it works, run:
redis-cli ping
If that command output PONG
, you're in business!
git clone https://github.com/Kava-Labs/connector-config.git
cd connector-config
npm install
Start connector as a regular Node.js process:
npm run dev
Debugging with inspect:
- Auto-magically find an inspect port beginning from the default port
9229
, counting up - Alternatively, manually assign a port to the
INSPECT
environment variable
Adding ports to Chrome network targets:
- Go to
chrome://inspect/#devices
in Google Chrome and clickConfigure...
. Then, add ports counting up from9229
like so:
Start connector as a long-running background process via PM2 daemon:
npm run start
# or
npm run restart
- Logs will be in
~/.pm2/logs/ilp-connector-combined.log
- Running
npm run restart
will run thestart
script and tail the logs