mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
attempt to avoid complete recompilation on app upgrade
This commit is contained in:
parent
79302906b5
commit
3981c7e1a7
2 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ fi
|
||||||
# Generate release name to always be the current timestamp so that
|
# Generate release name to always be the current timestamp so that
|
||||||
# it will be considered an upgrade
|
# it will be considered an upgrade
|
||||||
export PHILOMENA_VERSION="0.1.$(date +%s)"
|
export PHILOMENA_VERSION="0.1.$(date +%s)"
|
||||||
touch mix.exs
|
|
||||||
mix distillery.release --upgrade || die "failed to generate release"
|
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"
|
_build/prod/rel/philomena/bin/philomena upgrade $PHILOMENA_VERSION || die "failed to upgrade app; log in to the server and restart the app manually"
|
|
@ -50,7 +50,7 @@ end
|
||||||
# will be used by default
|
# will be used by default
|
||||||
|
|
||||||
release :philomena do
|
release :philomena do
|
||||||
set version: current_version(:philomena)
|
set version: System.get_env("PHILOMENA_VERSION")
|
||||||
set applications: [
|
set applications: [
|
||||||
:runtime_tools,
|
:runtime_tools,
|
||||||
philomena: :permanent
|
philomena: :permanent
|
||||||
|
|
Loading…
Reference in a new issue