~linuxgoose/bocpress

ref: a9d67bd9982533c3e42a9e8dcb61cbffc0e14945 bocpress/postgresql/Makefile -rw-r--r-- 459 bytes
a9d67bd9Jordan Robinson add new setting for auto markdown link formatting on paste in the editor 2 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