diff --git a/.env.sample b/.env.sample index 6b7b052..8d09deb 100644 --- a/.env.sample +++ b/.env.sample @@ -1,5 +1,6 @@ export DATABASE_URL=postgres://postgres:postgres@localhost:5432/go_escuela_lms_development export TEST_DATABASE_URL=postgres://postgres:postgres@localhost:5432/go_escuela_lms_test export SECRET_AUTH_KEY=secret123 +export SECRET_KEY_BASE= export GOOGLE_API_CREDENTIALS= export GOOGLE_BUCKET= \ No newline at end of file diff --git a/config/dev.exs b/config/dev.exs index b0e6a62..457977c 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -13,7 +13,7 @@ config :web, Web.Endpoint, check_origin: false, code_reloader: true, debug_errors: true, - secret_key_base: "xj5hlrtrUPTI8a4Odh00U0yHeUXNtj2RaBk8UMWvt1xPlgg4iwTP54Z69J7ug4io", + secret_key_base: System.get_env("SECRET_KEY_BASE"), watchers: [] # ## SSL Support diff --git a/config/prod.exs b/config/prod.exs index 107187c..4e29ff8 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -5,6 +5,4 @@ import Config # manifest is generated by the `mix phx.digest` task, # which you should run after static files are built and # before starting your production server. -config :web, Web.Endpoint, - url: [host: "example.com", port: 80], - cache_static_manifest: "priv/static/cache_manifest.json" +config :web, Web.Endpoint, url: [host: "example.com", port: 80] diff --git a/config/runtime.exs b/config/runtime.exs index e673477..21ffa0e 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -24,6 +24,11 @@ if config_env() == :prod do ], secret_key_base: secret_key_base + config :core, GoEscuelaLms.Core.Repo, + url: System.get_env("DATABASE_URL"), + show_sensitive_data_on_connection_error: true, + pool_size: 2 + # ## Using releases # # If you are doing OTP releases, you need to instruct Phoenix diff --git a/elixir_buildpack.config b/elixir_buildpack.config new file mode 100644 index 0000000..9b60c4b --- /dev/null +++ b/elixir_buildpack.config @@ -0,0 +1,2 @@ +elixir_version=1.16.1 +erlang_version=26.2.2