allomov
9/5/2013 - 11:16 AM

deploy-cf-console.sh

# 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'