#!/bin/bash -e which figlet 2>&- > /dev/null bundle check || { bundle --local --path vendor/bundle && bundle check; } if [[ -z $1 ]]; then exec bundle exec foreman start -f $(dirname $(dirname $0))/Procfile.rb -m 0 -c git=0,$(basename $0)=1 else exec bundle exec foreman start -f $(dirname $(dirname $0))/Procfile.rb -m 0 -c git=0,$(basename $0)=1 --args "$@" fi