summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 1b1ba5a92481f564eccbe6db76f7378d85723cae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
docker-run:
	@docker run -d --name ded-core -p 4000:4000 --rm ded-core:latest

run:
	@go run ./cmd/web -addr ":4000"

build:
	@docker build -t ded-core .

stop:
	@docker stop ded-core

# assume GRANT SELECT, INDEX, CREATE, INSERT, UPDATE, DROP, DELETE ON ded.* TO 'web'@'localhost'; 
# assume CREATE DATABASE ded CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
populate:
	mariadb -u web ded -p <  populate.sql

entr-run:
	find . | entr -r go run ./cmd/web