Skip to content

Commit

Permalink
chore: wip groupher_server config
Browse files Browse the repository at this point in the history
  • Loading branch information
mydearxym committed Mar 25, 2024
1 parent 254f5f2 commit cf63b21
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if config_env() == :prod do
"""

host =
System.get_env("PHX_HOST") || "groupher-server-withered-violet-5488-quiet-fog-9123.fly.dev"
System.get_env("PHX_HOST") || "groupher-server.fly.dev"

port = String.to_integer(System.get_env("PORT") || "4000")

Expand Down
6 changes: 3 additions & 3 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# fly.toml app configuration file generated for groupher-server-withered-violet-5488-quiet-fog-9123 on 2024-03-03T20:11:00+08:00
# fly.toml app configuration file generated for groupher-server on 2024-03-03T20:11:00+08:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'groupher-server-withered-violet-5488-quiet-fog-9123'
app = 'groupher-server'
primary_region = 'hkg'
kill_signal = 'SIGTERM'

Expand All @@ -13,7 +13,7 @@ kill_signal = 'SIGTERM'
release_command = '/app/bin/migrate'

[env]
PHX_HOST = 'groupher-server-withered-violet-5488-quiet-fog-9123.fly.dev'
PHX_HOST = 'groupher-server.fly.dev'
PORT = '8080'

[http_service]
Expand Down
6 changes: 3 additions & 3 deletions lib/groupher_server/repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defmodule GroupherServer.Repo do
Dynamically loads the repository url from the
DATABASE_URL environment variable.
"""
def init(_, opts) do
{:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))}
end
# def init(_, opts) do
# {:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))}
# end
end
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defmodule GroupherServer.Mixfile do
def project do
[
app: :groupher_server,
version: "2.1.2",
version: "2.1.3",
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
dialyzer: [plt_add_deps: :transitive, ignore_warnings: ".dialyzer_ignore.exs"],
Expand Down

0 comments on commit cf63b21

Please sign in to comment.