Permalink
Browse files

Make app initializer explicit

  • Loading branch information...
1 parent eb34d8f commit b9963c4c5e6fb79b2dc18f7a676b3549737b4742 @josevalim josevalim committed Sep 19, 2012
Showing with 4 additions and 6 deletions.
  1. +0 −6 lib/dynamo/app.ex
  2. +4 −0 lib/mix/tasks/dynamo.ex
View
@@ -133,12 +133,6 @@ defmodule Dynamo.App do
IEx.preload.after_spawn(fn -> Dynamo.Reloader.enable! end)
end
end
-
- initializer :start_dynamo_app do
- if app = config[:dynamo][:otp_app] do
- :application.start(app)
- end
- end
end
end
View
@@ -166,6 +166,10 @@ defmodule Mix.Tasks.Dynamo do
# The route from where public assets are served
# You can turn off static assets by setting it to false
public_route: "/public"
+
+ initializer :start_otp_app do
+ :application.start config[:dynamo][:otp_app]
+ end
end
"""

0 comments on commit b9963c4

Please sign in to comment.