index.community/backend/lib/mix/tasks/crawl.ex

14 lines
271 B
Elixir
Raw Normal View History

2019-07-14 11:47:06 +00:00
defmodule Mix.Tasks.Crawl do
alias Backend.Crawler
use Mix.Task
@shortdoc "Crawl a given instance."
def run(domain) do
Mix.Task.run("app.start")
# Application.ensure_all_started(:timex)
# Mix.Task.run("loadconfig")
Crawler.run(domain)
end
end