From 660eaf094c86c4a9a6fe3648bd1f0543cab5f840 Mon Sep 17 00:00:00 2001 From: yalh Date: Tue, 4 Aug 2020 21:46:17 +0200 Subject: [PATCH] Adding listen-port option to `mix mobilizon.instance gen` --- lib/mix/tasks/mobilizon/instance.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/mix/tasks/mobilizon/instance.ex b/lib/mix/tasks/mobilizon/instance.ex index bf612b009..5add8fcee 100644 --- a/lib/mix/tasks/mobilizon/instance.ex +++ b/lib/mix/tasks/mobilizon/instance.ex @@ -24,6 +24,7 @@ defmodule Mix.Tasks.Mobilizon.Instance do - `--dbname DBNAME` - the name of the database to use - `--dbuser DBUSER` - the user (aka role) to use for the database connection - `--dbpass DBPASS` - the password to use for the database connection + - `--listen-port PORT` - the port the app should listen to, defaults to 4000 """ use Mix.Task @@ -48,7 +49,8 @@ defmodule Mix.Tasks.Mobilizon.Instance do dbname: :string, dbuser: :string, dbpass: :string, - dbport: :integer + dbport: :integer, + listen_port: :string ], aliases: [ o: :output,