Skip to content

Latest commit

 

History

History
41 lines (20 loc) · 736 Bytes

HACKING.md

File metadata and controls

41 lines (20 loc) · 736 Bytes

Useful commands

Here are some notes for short-cuts to get useful things done while hacking on ListenBrainz:

Redis

To open a Redis command prompt:

docker exec -it listenbrainz_redis_1 redis-cli

Influx

To open an Influxdb command prompt:

docker exec -it listenbrainz_influx_1 influx

and to drop all the listens in influx db:

drop database listenbrainz

After dropping the database, you'll probably need to create the database again:

create database listenbrainz

Postgres

To get a postgres command prompt:

docker exec -it listenbrainz_web_1 psql -U listenbrainz -h db listenbrainz

Tests

To run the unit tests:

./test.sh

To run the integration tests:

./integration-test.sh