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

3 months ago
  1. #!/usr/bin/env bash
  2. export RAILS_ENV=production
  3. export SECRET_KEY_BASE=42
  4. export SEMANTIC_LOGGER_APP=egr
  5. if [[ -d public/assets ]]; then
  6. echo "ASSETS are already precompiled: MODIFIED_TIME"
  7. else
  8. rails assets:precompile
  9. fi
  10. rails server
  11. # TO REMOVE PROD assets:
  12. # rm -rf public/assets
  13. # journalctl --all -o cat --full -t egr
  14. # journalctl --all -o short -full --no-hostname -t egr -f