Helps to run memphis.dev locally without docker.
- Go version 1.19+ (I used 1.20.3).
- Recent PostgreSQL (I used 14.7).
Procfile
process manager. hivemind, overmind (requires tmux) or foreman
- Create PostreSQL db for memphis:
createdb memphis
- Copy and edit memphis env variables config. Look at
METADATA_DB_USER
:
cp .env.template .env
- Copy and edit rest gateway config:
cp conf/config.json.template conf/config.json
cd ~/
git clone https://github.com/memphisdev/memphis.git
cd memphis
CGO_ENABLED=0 go build -ldflags="-w" -a -o .
cp memphis ~/memphis-dockerless/nats-server
cd ~/
git clone https://github.com/memphisdev/memphis-rest-gateway.git
cd memphis-rest-gateway
CGO_ENABLED=0 go build -ldflags="-w" -a -o .
cp rest-gateway ~/memphis-dockerless/rest-gateway
overmind start