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
21 lines
653 B
#!/usr/bin/env bash
|
|
|
|
if ! gem list foreman -i --silent; then
|
|
echo "Installing foreman..."
|
|
gem install foreman
|
|
fi
|
|
|
|
# ----------------------------------------------------------------------
|
|
# in case of running with RAILS_ENV=production with assets precompiling!
|
|
# ----------------------------------------------------------------------
|
|
|
|
if [[ -d public/assets ]]; then
|
|
echo "You have probably precompiled assets for production purpose!"
|
|
echo "Would you like to remove these assets before running in DEV:"
|
|
echo "- Press Enter to continue"
|
|
echo "- Press Ctrl+C to cancel"
|
|
read
|
|
rm -rf public/assets
|
|
fi
|
|
|
|
exec foreman start -f Procfile.dev "$@"
|