~linuxgoose/bocpress

ref: 089af2cd13ff5b43219fd79e2cce1ead7df9c25f bocpress/postgresql/Makefile -rw-r--r-- 459 bytes
089af2cdJordan Robinson add all_tags lists to templates and postmanager functions to get all unique tags for posts and blog setting to show/hide tags in posts list 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.PHONY: pginit
pginit:
	$(info Initialising PostgreSQL database files)
	PGDATA=postgres-data/ pg_ctl init
	PGDATA=postgres-data/ pg_ctl start
	createuser mataroa
	psql -U $$(whoami) -d postgres -c "ALTER USER mataroa CREATEDB;"
	psql -U mataroa -d postgres -c "CREATE DATABASE mataroa;"

.PHONY: pgstart
pgstart:
	$(info Start PostgreSQL)
	PGDATA=postgres-data/ pg_ctl start

.PHONY: pgstop
pgstop:
	$(info Stop PostgreSQL)
	PGDATA=postgres-data/ pg_ctl stop