janus/Makefile

32 lines
676 B
Makefile
Raw Normal View History

2020-10-26 12:19:55 +01:00
SHELL := /bin/bash
export PATH := $(HOME)/.symfony/bin:$(PATH)
deps:
wget https://get.symfony.com/cli/installer -O - | bash
symfony composer install
npm install
up:
symfony server:start
db-up:
docker volume create janus-mysql
docker run -it --rm \
--name janus-mysql \
-p 3306:3306 \
-e MYSQL_ROOT_PASSWORD=janus \
-v janus-mysql:/var/lib/mysql \
mariadb:10.5
db-shell:
docker exec -it janus-mysql mysql -uroot -pjanus janus
db-reset:
docker volume rm --force janus-mysql
db-init:
bin/console doctrine:database:create --if-not-exists
bin/console doctrine:migrations:migrate --allow-no-migration
install-git-hooks:
git config core.hooksPath .githook