From 4e1fc4755bc773a652eb4237bdff0e9d563cb26f Mon Sep 17 00:00:00 2001 From: Joe Doss Date: Tue, 25 Aug 2020 10:06:53 -0500 Subject: [PATCH] Export RELEASE_FOOTPRINT on container start. (#9987) RELEASE_FOOTPRINT will be set to the output of date -u +'%Y-%m-%dT%H:%M:%SZ' (2020-08-25T02:02:21Z for example) which will fix https://github.com/forem/forem/pull/9904 This will be reset to a new date and time string every time the container starts. --- scripts/entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 915d7cc8e..648e1d2e8 100755 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -6,6 +6,8 @@ if [ -f tmp/pids/server.pid ]; then rm -f tmp/pids/server.pid fi +export RELEASE_FOOTPRINT=$(date -u +'%Y-%m-%dT%H:%M:%SZ') + echo "Running rake app_initializer:setup..." bundle exec rake app_initializer:setup