Before starting, make sure to install pkg in replit.nix
{ pkgs }: {
deps = [
pkgs.postgresql
pkgs.redis
];
}
1.init a postgres server under your dir (e.g. "pg")
initdb -D ./pg
- under
./pg/postgresql.conf
and replaced with
unix_socket_directories = '' # comma-separated list of directories
- create database (db name="runner")
createdb -h 127.0.0.1 runner
- start postgre server
pg_ctl -D ./pg -l logfile start
stop postgres server
pg_ctl -D ./pg -l logfile stop
connect to postgres server with psql
psql -h 127.0.0.1
- start redis server (that's it !)
redis-server
connect to redis server with redis-cli
redis-cli