You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
392 B
19 lines
392 B
#!/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
|