cd config && cp database.yml{.sample,} && cd -
git submodule init && git submodule update
rake db:drop; rake db:create; rake db:migrate; rake db:populate
rake searchkick:reindex CLASS=Document; rake searchkick:reindex CLASS=User
cap deploy:setup
cap uploads:setup
cap deploy
Note: you can prefix function by environment (usually, production or staging)