modernizing
This commit is contained in:
@@ -1,30 +1 @@
|
||||
# This file is responsible for configuring your application
|
||||
# and its dependencies with the aid of the Mix.Config module.
|
||||
use Mix.Config
|
||||
|
||||
# This configuration is loaded before any dependency and is restricted
|
||||
# to this project. If another project depends on this project, this
|
||||
# file won't be loaded nor affect the parent project. For this reason,
|
||||
# if you want to provide default values for your application for
|
||||
# 3rd-party users, it should be done in your "mix.exs" file.
|
||||
|
||||
# You can configure your application as:
|
||||
#
|
||||
# config :ex_mine, key: :value
|
||||
#
|
||||
# and access this configuration in your application as:
|
||||
#
|
||||
# Application.get_env(:ex_mine, :key)
|
||||
#
|
||||
# You can also configure a 3rd-party app:
|
||||
#
|
||||
# config :logger, level: :info
|
||||
#
|
||||
|
||||
# It is also possible to import configuration files, relative to this
|
||||
# directory. For example, you can emulate configuration per environment
|
||||
# by uncommenting the line below and defining dev.exs, test.exs and such.
|
||||
# Configuration from the imported file will override the ones defined
|
||||
# here (which is why it is important to import them last).
|
||||
#
|
||||
# import_config "#{Mix.env}.exs"
|
||||
import Config
|
||||
|
||||
@@ -2,15 +2,13 @@ defmodule ExMine.Application do
|
||||
use Application
|
||||
|
||||
def start(_type, _args) do
|
||||
import Supervisor.Spec
|
||||
|
||||
children = [
|
||||
worker(ExMine.Server, [])
|
||||
{ExMine.Server, []}
|
||||
]
|
||||
|
||||
options = [
|
||||
name: ExMine.Supervisor,
|
||||
strategy: :simple_one_for_one,
|
||||
strategy: :simple_one_for_one
|
||||
]
|
||||
|
||||
Supervisor.start_link(children, options)
|
||||
|
||||
5
mix.exs
5
mix.exs
@@ -5,7 +5,7 @@ defmodule ExMine.MixProject do
|
||||
[
|
||||
app: :ex_mine,
|
||||
version: "1.1.0",
|
||||
elixir: "~> 1.6",
|
||||
elixir: "~> 1.18",
|
||||
start_permanent: Mix.env() == :prod,
|
||||
deps: deps()
|
||||
]
|
||||
@@ -22,8 +22,7 @@ defmodule ExMine.MixProject do
|
||||
# Run "mix help deps" to learn about dependencies.
|
||||
defp deps do
|
||||
[
|
||||
{:cartographer, git: "git@gitea.daggertrout.com:mcdoh/Cartographer.git"},
|
||||
# {:cartographer, path: "../cartographer"},
|
||||
{:cartographer, git: "git@gitea.mcmorgans.us:gavin/Cartographer.git"}
|
||||
]
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user