Current section
10 Versions
Jump to
Current section
10 Versions
Compare versions
8
files changed
+21
additions
-16
deletions
| @@ -231,4 +231,4 @@ | |
| 231 231 | {<<"optional">>,false}, |
| 232 232 | {<<"repository">>,<<"hexpm">>}, |
| 233 233 | {<<"requirement">>,<<"~> 1.6.6">>}]]}. |
| 234 | - {<<"version">>,<<"4.1.0">>}. |
| 234 | + {<<"version">>,<<"4.1.1">>}. |
| @@ -15,19 +15,24 @@ defmodule NimbleTemplate.Addons.Phoenix.Api.Config do | |
| 15 15 | end |
| 16 16 | |
| 17 17 | def edit_config_prod(%Project{otp_app: otp_app, web_module: web_module} = project) do |
| 18 | - Generator.replace_content( |
| 18 | + Generator.delete_content( |
| 19 19 | "config/prod.exs", |
| 20 20 | """ |
| 21 | - config :#{otp_app}, #{web_module}.Endpoint, |
| 22 | - """, |
| 23 | - """ |
| 24 | - config :#{otp_app}, #{web_module}.Endpoint.Anchor |
| 21 | + # For production, don't forget to configure the url host |
| 22 | + # to something meaningful, Phoenix uses this information |
| 23 | + # when generating URLs. |
| 24 | + # |
| 25 | + # Note we also include the path to a cache manifest |
| 26 | + # containing the digested version of static files. This |
| 27 | + # manifest is generated by the `mix phx.digest` task, |
| 28 | + # which you should run after static files are built and |
| 29 | + # before starting your production server. |
| 25 30 | """ |
| 26 31 | ) |
| 27 32 | |
| 28 33 | Generator.delete_content( |
| 29 34 | "config/prod.exs", |
| 30 | - "config :#{otp_app}, #{web_module}.Endpoint.Anchor" |
| 35 | + "config :#{otp_app}, #{web_module}.Endpoint," |
| 31 36 | ) |
| 32 37 | |
| 33 38 | Generator.delete_content( |
| @@ -17,7 +17,7 @@ defmodule NimbleTemplate.Addons.Phoenix.Api.FallbackController do | |
| 17 17 | |
| 18 18 | files = [ |
| 19 19 | {:eex, "lib/otp_app_web/controllers/api/fallback_controller.ex.eex", |
| 20 | - "#{web_path}/controller/api/fallback_controller.ex"} |
| 20 | + "#{web_path}/controllers/api/fallback_controller.ex"} |
| 21 21 | ] |
| 22 22 | |
| 23 23 | Generator.copy_file(files, binding) |
| @@ -44,7 +44,7 @@ defmodule NimbleTemplate.Templates.Template do | |
| 44 44 | end |
| 45 45 | |
| 46 46 | defp fetch_and_install_elixir_dependencies() do |
| 47 | - Mix.shell().cmd("MIX_ENV=develop mix do deps.get, deps.compile") |
| 47 | + Mix.shell().cmd("MIX_ENV=dev mix do deps.get, deps.compile") |
| 48 48 | Mix.shell().cmd("MIX_ENV=test mix do deps.get, deps.compile") |
| 49 49 | end |
| @@ -4,7 +4,7 @@ defmodule NimbleTemplate.MixProject do | |
| 4 4 | def project do |
| 5 5 | [ |
| 6 6 | app: :nimble_template, |
| 7 | - version: "4.1.0", |
| 7 | + version: "4.1.1", |
| 8 8 | description: "Phoenix/Mix template for projects at [Nimble](https://nimblehq.co/).", |
| 9 9 | elixir: "~> 1.13.3", |
| 10 10 | elixirc_paths: elixirc_paths(Mix.env()), |
Loading more files…