From 3981c7e1a753ec37958aa089ade6938d0c79c276 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sat, 7 Dec 2019 13:20:41 -0500 Subject: [PATCH] attempt to avoid complete recompilation on app upgrade --- post-receive | 2 +- rel/config.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/post-receive b/post-receive index 26162f05..55bb3b14 100755 --- a/post-receive +++ b/post-receive @@ -37,7 +37,7 @@ fi # Generate release name to always be the current timestamp so that # it will be considered an upgrade export PHILOMENA_VERSION="0.1.$(date +%s)" -touch mix.exs + mix distillery.release --upgrade || die "failed to generate release" _build/prod/rel/philomena/bin/philomena upgrade $PHILOMENA_VERSION || die "failed to upgrade app; log in to the server and restart the app manually" \ No newline at end of file diff --git a/rel/config.exs b/rel/config.exs index 819bf4a3..cfe61672 100644 --- a/rel/config.exs +++ b/rel/config.exs @@ -50,7 +50,7 @@ end # will be used by default release :philomena do - set version: current_version(:philomena) + set version: System.get_env("PHILOMENA_VERSION") set applications: [ :runtime_tools, philomena: :permanent