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.
14 lines
251 B
Bash
Executable file
14 lines
251 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
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
|
|
|
|
exec "$@"
|