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.

21 lines
653 B

4 months ago
1 year ago
4 months ago
1 year 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 "You have probably precompiled assets for production purpose!"
  11. echo "Would you like to remove these assets before running in DEV:"
  12. echo "- Press Enter to continue"
  13. echo "- Press Ctrl+C to cancel"
  14. read
  15. rm -rf public/assets
  16. fi
  17. exec foreman start -f Procfile.dev "$@"