deploy/build-post-config
#!/bin/bash
# This script is called by identity-devops cookbooks as part of the deployment
# process. It runs build steps needed to complete building the application. It
# runs *after* deploy/activate is called to download secrets. This allows us to
# rely on the full configuration being available.
set -euo pipefail
echo "deploy/build-post-config starting"
echo "HOME: ${HOME-}"
cd "$(dirname "$0")/.."
set -x
id
which bundle
export NODE_ENV=production
SKIP_YARN_INSTALL=true bundle exec rake assets:precompile
bundle exec bin/copy_robots_file
make analytics_events
set +x
echo "deploy/build-post-config finished"