diff --git a/config/config.exs b/config/config.exs index 490c72d..3ca285b 100644 --- a/config/config.exs +++ b/config/config.exs @@ -65,6 +65,11 @@ config :exq, max_retries: 25, shutdown_timeout: 5000 +config :exq_ui, + web_port: 4040, + web_namespace: "", + server: true + # Import environment specific config. This must remain at the bottom # of this file so it overrides the configuration defined above. import_config "#{Mix.env}.exs" diff --git a/config/test.exs b/config/test.exs index a5f7c19..236e69c 100644 --- a/config/test.exs +++ b/config/test.exs @@ -25,3 +25,5 @@ config :asciinema, Asciinema.FileStore.Local, path: "uploads/test/" config :asciinema, :snapshot_updater, Asciinema.Asciicasts.SnapshotUpdater.Sync config :asciinema, :frames_generator, Asciinema.Asciicasts.FramesGenerator.Noop + +config :exq_ui, server: false diff --git a/dev/docker-compose.yml b/dev/docker-compose.yml index 9f0cecc..e4378e3 100644 --- a/dev/docker-compose.yml +++ b/dev/docker-compose.yml @@ -32,6 +32,7 @@ services: ports: - 3000:3000 - 4000:4000 + - 4040:4040 volumes: - ../uploads:/app/uploads:cached - ../deps:/app/deps:cached diff --git a/docker-compose.yml b/docker-compose.yml index d9b45ca..63a40a0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -57,6 +57,7 @@ services: env_file: .env.production ports: - "3000:80" + # - "4040:4040" volumes: - ./uploads:/app/uploads - ./log:/app/log diff --git a/mix.exs b/mix.exs index 964f3db..551881a 100644 --- a/mix.exs +++ b/mix.exs @@ -37,6 +37,7 @@ defmodule Asciinema.Mixfile do :timex, :timex_ecto, :exq, + :exq_ui, ]] end @@ -53,6 +54,7 @@ defmodule Asciinema.Mixfile do {:cowboy, "~> 1.0"}, {:ex_aws, "~> 1.0"}, {:exq, "~> 0.9.0"}, + {:exq_ui, "~> 0.9.0"}, {:gettext, "~> 0.11"}, {:phoenix, "~> 1.2.1"}, {:phoenix_ecto, "~> 3.0"}, diff --git a/mix.lock b/mix.lock index 510ef59..1f8ccab 100644 --- a/mix.lock +++ b/mix.lock @@ -11,6 +11,7 @@ "ecto": {:hex, :ecto, "2.0.4", "03fd3b9aa508b1383eb38c00ac389953ed22af53811aa2e504975a3e814a8d97", [:mix], [{:db_connection, "~> 1.0-rc.2", [hex: :db_connection, repo: "hexpm", optional: true]}, {:decimal, "~> 1.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:mariaex, "~> 0.7.7", [hex: :mariaex, repo: "hexpm", optional: true]}, {:poison, "~> 1.5 or ~> 2.0", [hex: :poison, repo: "hexpm", optional: true]}, {:poolboy, "~> 1.5", [hex: :poolboy, repo: "hexpm", optional: false]}, {:postgrex, "~> 0.11.2", [hex: :postgrex, repo: "hexpm", optional: true]}, {:sbroker, "~> 1.0-beta", [hex: :sbroker, repo: "hexpm", optional: true]}], "hexpm"}, "ex_aws": {:hex, :ex_aws, "1.1.2", "b78416d0a84efe92c22e5df8ba7ca028d63b2b4228f95871a1ecf10324b6493b", [:mix], [{:configparser_ex, "~> 0.2.1", [hex: :configparser_ex, repo: "hexpm", optional: true]}, {:hackney, "1.6.3 or 1.6.5 or 1.7.1", [hex: :hackney, repo: "hexpm", optional: true]}, {:jsx, "~> 2.8", [hex: :jsx, repo: "hexpm", optional: true]}, {:poison, ">= 1.2.0", [hex: :poison, repo: "hexpm", optional: true]}, {:sweet_xml, "~> 0.6", [hex: :sweet_xml, repo: "hexpm", optional: true]}, {:xml_builder, "~> 0.0.6", [hex: :xml_builder, repo: "hexpm", optional: true]}], "hexpm"}, "exq": {:hex, :exq, "0.9.0", "3feeb085fcd94a687033211e10c78cf9dca1de062aac3fa9a4b1f808cdcea522", [:mix], [{:poison, ">= 1.2.0 or ~> 2.0", [hex: :poison, repo: "hexpm", optional: false]}, {:redix, ">= 0.5.0", [hex: :redix, repo: "hexpm", optional: false]}, {:uuid, ">= 1.0.0", [hex: :uuid, repo: "hexpm", optional: false]}], "hexpm"}, + "exq_ui": {:hex, :exq_ui, "0.9.0", "e97e9fa9009f30d2926b51a166e40a3a521e83f61f3f333fede8335b2aa57f09", [:mix], [{:cowboy, "~> 1.0", [hex: :cowboy, repo: "hexpm", optional: false]}, {:exq, "~> 0.9", [hex: :exq, repo: "hexpm", optional: false]}, {:plug, ">= 0.8.1 and < 2.0.0", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm"}, "fs": {:hex, :fs, "0.9.2", "ed17036c26c3f70ac49781ed9220a50c36775c6ca2cf8182d123b6566e49ec59", [:rebar], [], "hexpm"}, "gettext": {:hex, :gettext, "0.11.0", "80c1dd42d270482418fa158ec5ba073d2980e3718bacad86f3d4ad71d5667679", [:mix], [], "hexpm"}, "hackney": {:hex, :hackney, "1.7.1", "e238c52c5df3c3b16ce613d3a51c7220a784d734879b1e231c9babd433ac1cb4", [:rebar3], [{:certifi, "1.0.0", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "4.0.0", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "1.0.1", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "1.0.2", [hex: :mimerl, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "1.1.1", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}], "hexpm"},