Skip to content

Commit

Permalink
Feat/release (#49)
Browse files Browse the repository at this point in the history
* add mode release

* add elixir buildpack
  • Loading branch information
nmenag authored Mar 30, 2024
1 parent 2d67daf commit b3a4efa
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -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=
2 changes: 1 addition & 1 deletion config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions config/prod.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
5 changes: 5 additions & 0 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions elixir_buildpack.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
elixir_version=1.16.1
erlang_version=26.2.2

0 comments on commit b3a4efa

Please sign in to comment.