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.

23 lines
671 B

2 months ago
11 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
11 months ago
  1. #!/usr/bin/env bash
  2. if ! gem list foreman -i --silent; then
  3. echo "Installing foreman..."
  4. gem install foreman
  5. fi
  6. # ----------------------------------------------------------------------
  7. # in case of running with RAILS_ENV=production with assets precompiling!
  8. # ----------------------------------------------------------------------
  9. if [[ -d public/assets ]]; then
  10. echo
  11. echo "You have probably precompiled assets for production purpose!"
  12. echo
  13. echo "Would you like to remove these assets before running in DEV?"
  14. echo "-- Press Enter to confirm / Ctrl+C to cancel"
  15. read
  16. rm -rf public/assets
  17. rm -rf tmp/cache
  18. fi
  19. exec foreman start -f Procfile.dev "$@"