Location of mix changed.
--- a/roles/pleroma/tasks/main.yaml Sat Jan 19 13:32:43 2019 -0600
+++ b/roles/pleroma/tasks/main.yaml Sat Jan 19 13:45:58 2019 -0600
@@ -61,7 +61,7 @@
- "mix local.hex --force"
- "mix local.rebar --force"
- "mix deps.get"
- # - "mix ecto.migrate"
+ - "mix ecto.migrate"
notify: restart pleroma
environment:
MIX_ENV: "prod"
--- a/roles/pleroma/templates/pleroma.service.j2 Sat Jan 19 13:32:43 2019 -0600
+++ b/roles/pleroma/templates/pleroma.service.j2 Sat Jan 19 13:45:58 2019 -0600
@@ -10,7 +10,7 @@
Environment="HOME=/home/{{pleroma_user}}"
Environment="MIX_ENV=prod"
Environment="PLUG_TMPDIR=/tmp/{{pleroma_user}}"
-ExecStart=/usr/local/bin/mix phx.server
+ExecStart=/usr/bin/mix phx.server
ExecReload=/bin/kill $MAINPID
KillMode=process
Restart=on-failure