# do we need clean database before ?
cf push --command 'bundle exec rake db:drop db:create db:migrate db:seed'
cf push --command 'bundle exec rails s -p $PORT'
# also you can use
cf push --command 'bundle exec rake db:recreate; bundle exec rails s -p $PORT'