-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (20 loc) · 813 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
MINIFLUX_PORT:=8080
default: db migrate start admin_user browse
# Start the Miniflux service.
start:
docker-compose up -d
# Stop all services and clean up all containers.
stop:
docker-compose down --rmi all --remove-orphans
# Create the Miniflux database. Assumes Postgres.app is already running at the default location.
db:
/Applications/Postgres.app/Contents/Versions/latest/bin/createdb miniflux || true && echo "Database already exists."
# Run Miniflux database migrations.
migrate:
docker-compose run miniflux /usr/bin/miniflux -migrate
# Make the administrative user, if necessary. Uses the environment variables defined in docker-compose.yml.
admin_user:
docker-compose run miniflux /usr/bin/miniflux -create-admin
# Browse to the Miniflux UI.
browse:
open "http://localhost:${MINIFLUX_PORT}"