chore: initial commit
This commit is contained in:
29
Makefile
Normal file
29
Makefile
Normal file
@ -0,0 +1,29 @@
|
||||
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
|
Reference in New Issue
Block a user