Permalink
Browse files

Move default static dir to priv

  • Loading branch information...
1 parent b05dca1 commit 799ae0b768ca52583fa6398c2dedf33f4fbc8fab @josevalim josevalim committed Sep 28, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −1 lib/dynamo/filters/static.ex
  2. +2 −1 lib/mix/tasks/dynamo.ex
@@ -57,7 +57,7 @@ defmodule Dynamo.Filters.Static do
end
defp root_path(root) when is_atom(root) do
- :code.lib_dir(root, :public)
+ File.join :code.lib_dir(root), "priv/static"
end
defp root_path(root) when is_binary(root) do
@@ -77,7 +77,8 @@ defmodule Mix.Tasks.Dynamo do
create_file "config/environments/prod.exs", config_prod_template(assigns)
create_directory "lib"
- create_directory "public"
+ create_directory "priv"
+ create_directory "priv/static"
create_directory "test"
create_file "test/test_helper.exs", test_helper_template(assigns)

0 comments on commit 799ae0b

Please sign in to comment.