From 990bfac44c830751fb3e615e91fb5100325431b6 Mon Sep 17 00:00:00 2001 From: Vincent Date: Wed, 17 Apr 2019 17:15:36 +0200 Subject: [PATCH] Add phx.migrate_serve command that runs ecto commands and launch server --- mix.exs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mix.exs b/mix.exs index 6ba7bbe99..bb8e8a821 100644 --- a/mix.exs +++ b/mix.exs @@ -7,7 +7,7 @@ defmodule Mobilizon.Mixfile do [ app: :mobilizon, version: @version, - elixir: "~> 1.4", + elixir: "~> 1.8", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, @@ -116,7 +116,8 @@ defmodule Mobilizon.Mixfile do [ "ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"], "ecto.reset": ["ecto.drop", "ecto.setup"], - test: ["ecto.create --quiet", "ecto.migrate", "test"] + test: ["ecto.create --quiet", "ecto.migrate", "test"], + "phx.migrate_serve": ["ecto.create --quiet", "ecto.migrate", "phx.server"] ] end