summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: c910003b57e92d2f006c7cac9bb236e737adf415 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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