Update Makefile for Docker dev env

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-08-04 11:50:32 +02:00
parent b45d407cc1
commit 64c0e3c729
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -2,6 +2,13 @@ init:
@bash docker/message.sh "start"
make start
setup: stop
@bash docker/message.sh "Compiling everything"
docker-compose run --rm api bash -c 'mix deps.get; yarn --cwd "js"; yarn --cwd "js" build:pictures; mix ecto.create; mix ecto.migrate'
migrate:
docker-compose run --rm api mix ecto.migrate
logs:
docker-compose logs -f
start: stop
@bash docker/message.sh "starting Mobilizon with docker"
docker-compose up -d api