#!/usr/bin/env bash export RAILS_ENV=production export SECRET_KEY_BASE=42 export SEMANTIC_LOGGER_APP=egr if [[ -d public/assets ]]; then echo "ASSETS are already precompiled: MODIFIED_TIME" else rails assets:precompile fi rails server # TO REMOVE PROD assets: # rm -rf public/assets # journalctl --all -o cat --full -t egr # journalctl --all -o short -full --no-hostname -t egr -f