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