Skip to content

Commit

Permalink
fix #44 Makefile not loading env vars for db migration (#45)
Browse files Browse the repository at this point in the history
* fix #44 Makefile not loading env vars for

* Update README.md
  • Loading branch information
tot-ra authored Feb 6, 2024
1 parent ec47c6c commit 4402a0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
PLATFORM := $(shell uname | tr A-Z a-z)

include .env

lint:
if [ ! -f ./bin/golangci-lint ] ; \
then \
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ docker run -p 8000:8000 -p 8001:8001 --env POSTMAND_DATABASE_URL='postgres://use
git clone https://github.com/allisson/postmand
cd postmand
cp local.env .env # and edit .env
make run-migrate # create database schema
make db-migrate # create database schema
make run-server # run the server
make run-worker
```

### Run the worker
Expand Down

0 comments on commit 4402a0c

Please sign in to comment.