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.

22 lines
652 B

3 months ago
12 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
12 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. fi
  18. exec foreman start -f Procfile.dev "$@"