changed
README.md
|
@@ -20,7 +20,7 @@ ExDokku can be installed by adding `ex_dokku` and `observer_cli` to your list of
|
20
20
|
```elixir
|
21
21
|
def deps do
|
22
22
|
[
|
23
|
- {:ex_dokku, "~> 0.1.6", only: :dev},
|
23
|
+ {:ex_dokku, "~> 0.1.7", only: :dev},
|
24
24
|
{:observer_cli, "~> 1.5"}
|
25
25
|
]
|
26
26
|
end
|
|
@@ -59,9 +59,7 @@ Saves your development database to your app root directory as `latest.dump`.
|
59
59
|
|
60
60
|
#### mix dokku.local.load
|
61
61
|
|
62
|
- Loads the `latest.dump` from the app root directory as your development database.
|
63
|
-
|
64
|
- Note that this command just loads the data, it does not restore the schema. You may need to create and migrate your database before running this command.
|
62
|
+ Loads the `latest.dump` from the app root directory as your development database. Migrates afterwards
|
65
63
|
|
66
64
|
### Staging
|
changed
hex_metadata.config
|
@@ -30,4 +30,4 @@
|
30
30
|
{<<"optional">>,false},
|
31
31
|
{<<"repository">>,<<"hexpm">>},
|
32
32
|
{<<"requirement">>,<<"~> 1.5">>}]]}.
|
33
|
- {<<"version">>,<<"0.1.6">>}.
|
33
|
+ {<<"version">>,<<"0.1.7">>}.
|
changed
lib/ex_dokku/action.ex
|
@@ -37,14 +37,18 @@ defmodule ExDokku.Action do
|
37
37
|
System.cmd("mix", ["ecto.drop"])
|
38
38
|
IO.puts("== Creating development db ==")
|
39
39
|
System.cmd("mix", ["ecto.create"])
|
40
|
+
|
40
41
|
System.cmd("pg_restore", [
|
41
|
- "-c",
|
42
|
- "--disable-triggers",
|
42
|
+ "--no-acl",
|
43
|
+ "--clean",
|
44
|
+ "--if-exists",
|
43
45
|
"--username=#{postgres_username}",
|
44
46
|
"--dbname=#{database_name}",
|
45
47
|
"#{name}.dump"
|
46
48
|
])
|
47
49
|
|
50
|
+ System.cmd("mix", ["ecto.migrate"])
|
51
|
+
|
48
52
|
IO.puts("== Loaded #{name}.dump into development db ==")
|
49
53
|
end
|
changed
mix.exs
|
@@ -2,7 +2,7 @@ defmodule ExDokku.MixProject do
|
2
2
|
@moduledoc false
|
3
3
|
use Mix.Project
|
4
4
|
|
5
|
- @version "0.1.6"
|
5
|
+ @version "0.1.7"
|
6
6
|
|
7
7
|
def project do
|
8
8
|
[
|