I have some problem while working on Elixir.
This is my mix.exs
...
defmodule FlockTest.Mixfile do
use Mix.Project
def project do
[app: :flock_test,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
# Specify extra applications you'll use from Erlang/Elixir
[
extra_applications: [:logger],
mod: {FlockTest, []}
]
end
...
...
and this is code for FlockTest
.
defmodule FlockTest do
@moduledoc """
Documentation for FlockTest.
"""
def start(_type, _args) do
IO.puts "Start Flock"
end
end
I run this code with mix run --no-halt
but this caused error like this.
=INFO REPORT==== 12-Nov-2017::17:47:39 ===
application: logger
exited: stopped
type: temporary
** (Mix) Could not start application flock_test: FlockTest.start(:normal,
[]) returned a bad value: :ok
Am I doing something wrong?
{:ok, self()}
– Bolivar