-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdev.exs
More file actions
35 lines (28 loc) · 790 Bytes
/
dev.exs
File metadata and controls
35 lines (28 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import Config
config :plug_sync, ecto_repos: [PlugSync.Repo], start_server: false
case System.get_env("PHOENIX_SYNC_MODE", "embedded") do
"http" ->
IO.puts("Starting in HTTP mode")
config :phoenix_sync,
mode: :http,
env: config_env(),
url: "http://localhost:3000"
config :plug_sync, PlugSync.Repo,
username: "postgres",
password: "password",
hostname: "localhost",
database: "electric",
port: 54321
_ ->
IO.puts("Starting in embedded mode")
config :phoenix_sync,
mode: :embedded,
env: config_env(),
repo: PlugSync.Repo
config :plug_sync, PlugSync.Repo,
username: "postgres",
password: "password",
hostname: "localhost",
database: "plug_sync",
port: 54321
end