From 64c0e3c72968c1794580cd02cb154e3706286791 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 4 Aug 2021 11:50:32 +0200 Subject: [PATCH] Update Makefile for Docker dev env Signed-off-by: Thomas Citharel --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index c939bfdc6..f0eb6eff6 100644 --- a/Makefile +++ b/Makefile @@ -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