-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use new Phx 1.3 application file, #168
- Loading branch information
Showing
5 changed files
with
62 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,28 @@ | ||
defmodule Dwylbot do | ||
use Application | ||
|
||
# See http://elixir-lang.org/docs/stable/elixir/Application.html | ||
# for more information on OTP Applications | ||
def start(_type, _args) do | ||
import Supervisor.Spec | ||
|
||
# Define workers and child supervisors to be supervised | ||
children = [ | ||
# Start the Ecto repository | ||
# supervisor(Dwylbot.Repo, []), | ||
# Start the endpoint when the application starts | ||
supervisor(DwylbotWeb.Endpoint, []), | ||
# Start your own worker by calling: Dwylbot.Worker.start_link(arg1, arg2, arg3) | ||
# worker(Dwylbot.Worker, [arg1, arg2, arg3]), | ||
] | ||
|
||
# See http://elixir-lang.org/docs/stable/elixir/Supervisor.html | ||
# for other strategies and supported options | ||
opts = [strategy: :one_for_one, name: Dwylbot.Supervisor] | ||
Supervisor.start_link(children, opts) | ||
end | ||
# use Application | ||
# | ||
# # See http://elixir-lang.org/docs/stable/elixir/Application.html | ||
# # for more information on OTP Applications | ||
# def start(_type, _args) do | ||
# import Supervisor.Spec | ||
# | ||
# # Define workers and child supervisors to be supervised | ||
# children = [ | ||
# # Start the Ecto repository | ||
# # supervisor(Dwylbot.Repo, []), | ||
# # Start the endpoint when the application starts | ||
# supervisor(DwylbotWeb.Endpoint, []) | ||
# # Start your own worker by calling: Dwylbot.Worker.start_link(arg1, arg2, arg3) | ||
# # worker(Dwylbot.Worker, [arg1, arg2, arg3]), | ||
# ] | ||
# | ||
# # See http://elixir-lang.org/docs/stable/elixir/Supervisor.html | ||
# # for other strategies and supported options | ||
# opts = [strategy: :one_for_one, name: Dwylbot.Supervisor] | ||
# Supervisor.start_link(children, opts) | ||
# end | ||
|
||
# Tell Phoenix to update the endpoint configuration | ||
# whenever the application is updated. | ||
def config_change(changed, _new, removed) do | ||
DwylbotWeb.Endpoint.config_change(changed, removed) | ||
:ok | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
defmodule Dwylbot.Application do | ||
use Application | ||
|
||
# See http://elixir-lang.org/docs/stable/elixir/Application.html | ||
# for more information on OTP Applications | ||
def start(_type, _args) do | ||
import Supervisor.Spec | ||
|
||
# Define workers and child supervisors to be supervised | ||
children = [ | ||
# Start the Ecto repository | ||
# supervisor(Dwylbot.Repo, []), | ||
# Start the endpoint when the application starts | ||
supervisor(DwylbotWeb.Endpoint, []) | ||
# Start your own worker by calling: Dwylbot.Worker.start_link(arg1, arg2, arg3) | ||
# worker(Dwylbot.Worker, [arg1, arg2, arg3]), | ||
] | ||
|
||
# See http://elixir-lang.org/docs/stable/elixir/Supervisor.html | ||
# for other strategies and supported options | ||
opts = [strategy: :one_for_one, name: Dwylbot.Supervisor] | ||
Supervisor.start_link(children, opts) | ||
end | ||
|
||
# Tell Phoenix to update the endpoint configuration | ||
# whenever the application is updated. | ||
def config_change(changed, _new, removed) do | ||
DwylbotWeb.Endpoint.config_change(changed, removed) | ||
:ok | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters