mirror of
https://github.com/valitydev/pathfinder.git
synced 2024-11-06 09:45:24 +00:00
Make use of the read-only repo config for prod env (#3)
This commit is contained in:
parent
526ad6edda
commit
0656732149
@ -2,6 +2,9 @@ import Config
|
||||
|
||||
# Development compile-time app env
|
||||
|
||||
config :pathfinder,
|
||||
read_only: :false
|
||||
|
||||
config :pathfinder, Woody.Server,
|
||||
ip: "0.0.0.0",
|
||||
port: 8022
|
||||
|
@ -1,5 +1,8 @@
|
||||
defmodule NewWay.Repo do
|
||||
@read_only Application.compile_env(:pathfinder, :read_only, :true)
|
||||
|
||||
use Ecto.Repo,
|
||||
otp_app: :pathfinder,
|
||||
adapter: Ecto.Adapters.Postgres
|
||||
adapter: Ecto.Adapters.Postgres,
|
||||
read_only: @read_only
|
||||
end
|
||||
|
@ -2,7 +2,7 @@ defmodule NewWay.Repo.Migrations.Schema do
|
||||
use Ecto.Migration
|
||||
|
||||
def up do
|
||||
execute "CREATE SCHEMA nw"
|
||||
execute "CREATE SCHEMA IF NOT EXISTS nw"
|
||||
end
|
||||
|
||||
def down do
|
||||
|
Loading…
Reference in New Issue
Block a user